Koha/cataloguing
Jonathan Druart 8aced236e9
Bug 37429: Set default value for global variables
The global variables needs to be assigned with a default value, or the
value from the previous request will be used.

Global variables are persistent from one request to another, in memory.

This patch:
* groups default value for global variables together
* removes $authorised_values_sth from this list (it is not a global var)
* set $changed_framework to 0 (which fix the issue)

Test plan:
1. Open an existing biblio (detail.pl)
2. Click "Edit record"
3. Change the framework (no need to change any details)
4. Change the framework back to the original one (no need to save anything)
5. Go back to the biblio overview page (detail.pl)
=> The form is populated

Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-08-16 17:33:45 +02:00
..
value_builder Bug 37371: Move Maskito init to onReady in dateaccessioned.pl 2024-07-22 07:33:18 +01:00
addbiblio.pl Bug 37429: Set default value for global variables 2024-08-16 17:33:45 +02:00
addbooks.pl
additem.pl Bug 36498: Tidy cataloguing/additem.pl 2024-06-27 14:04:48 +02:00
cataloging-home.pl
concerns.pl
editor.pl
linkitem.pl
merge.pl
merge_ajax.pl
moveitem.pl
plugin_launcher.pl
ysearch.pl
z3950_auth_search.pl
z3950_search.pl