Koha/serials
Pedro Amorim 7294908de3
Bug 35073: Default to existing value if there is one
For values that dont exist in the batch edit submission, i.e. UI says 'No change', we default to existing value if there is one.

Test plan:
Preparation - Additional fields:
1) Add a new 'additional field', visit:
/cgi-bin/koha/admin/additional-fields.pl
2) Click 'subscription' and '+ New field'. Enter a 'name' and hit 'save'.

Serials:
1) Add a new serial, visit:
/cgi-bin/koha/serials/subscription-add.pl
2) Put a biblionumber in the 'record' field, i.e. '112'. Press 'next' and click 'ok' on the alert box
3) Fill all the required fields and click 'test prediction'
4) Input something in the additional field created previously.
5) Click 'save subscription'. Notice the additional field is as expected.
6) Repeat steps 1-5 to create a second serial.

Batch edit:
1) Visit serials and hit the 'Search' button:
/cgi-bin/koha/serials/serials-home.pl
2) Click the 2 checkboxes for the 2 serials we created previously and click the new link that pops up 'edit selected serials'.
3) Click 'Save' without changing anything.
4) Go back to either of the serials, notice the value for the additional field is unchanged. Visit:
/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=1

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-11-03 12:04:37 -03:00
..
acqui-search-result.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
acqui-search.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
checkexpiration.pl
claims.pl Bug 30377: Fix two CGI::param called in list context-warnings 2022-04-04 16:23:46 +02:00
create-numberpattern.pl Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
lateissues-export.pl
reorder_members.pl
routing-preview.pl
routing.pl
serials-collection.pl
serials-edit.pl Bug 34146: Counterpart for serials-edit 2023-07-03 14:51:33 -03:00
serials-home.pl
serials-search.pl Bug 31846: Add syspref for serials search results limit 2023-10-25 10:35:27 -03:00
showpredictionpattern.pl Bug 33901: (bug 30718 follow-up) Predition pattern - don't set end date to today 2023-06-09 08:41:53 -03:00
subscription-add.pl Bug 33039: Add ability to specify a template for serial subscription "Published on (text)" field 2023-07-14 08:59:43 -03:00
subscription-batchedit.pl Bug 35073: Default to existing value if there is one 2023-11-03 12:04:37 -03:00
subscription-bib-search.pl Bug 33803: Remove comment about tab width 2023-06-06 09:58:47 -03:00
subscription-detail.pl Bug 34199: Add full title information to subscription detail page 2023-09-22 11:35:46 -03:00
subscription-frequencies.pl
subscription-frequency.pl
subscription-history.pl
subscription-numberpattern.pl
subscription-numberpatterns.pl Bug 29608: Made so doesn't require full permission 2022-09-07 13:49:53 -07:00
subscription-renew.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
viewalerts.pl