Koha-clms/serials
Hammat Wele cbdd895dbf
Bug 36466: Incorrect date value stored when 'Published on' or 'Expected on' are empty
When we edit a serial and we leave the date fields ('Published on' or 'Expected on') empty incorrect date are saved in the database 0000-00-00
instade of current date and we get Error 500

to reproduce
1. Connect to staff interface
2. Go to Serials and create a new subscription
3. Click on Serial collection in the left menu (and note the
   Subscription numnber)
4. Select a serial to edit and Click on «Edit serials»
5. In the Serial edition form, delete «Published on > and « Expected on
   » dates and save
    ----> Error 500 page is displayed
6. Check the value of «Published on > and « Expected on » dates  in the
   database
   select planneddate,publisheddate from serial where subscriptionid=<Subscription numnber in step 3>;
    ------> planneddate publisheddate have «0000-00-00» value
7. Apply the patch
8. run ./installer/data/mysql/updatedatabase.pl
9. repeat step 2, 3, 4, 5, 6
   ----->  Error 500 page is no more displayed
   -----> «Published on » and « Expected on » field have NULL as value

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2026-02-06 15:17:32 -07:00
..
acqui-search-result.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
acqui-search.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
checkexpiration.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
claims.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
create-numberpattern.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
lateissues-export.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
reorder_members.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
routing-preview.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
routing.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
serials-collection.pl Bug 38061: Add item column to serial collections table 2026-01-22 10:02:11 -07:00
serials-edit.pl Bug 36466: Incorrect date value stored when 'Published on' or 'Expected on' are empty 2026-02-06 15:17:32 -07:00
serials-home.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
serials-search.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
showpredictionpattern.pl Bug 37796: (follow-up) Correct call in showpredictionpattern.pl 2025-12-17 13:24:24 -07:00
subscription-add.pl Bug 38061: Add a checkbox to determine whether collection table issues should be pre-selected 2026-01-22 10:02:19 -07:00
subscription-batchedit.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-bib-search.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-detail.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-frequencies.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-frequency.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-history.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-numberpattern.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-numberpatterns.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-renew.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
viewalerts.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00