Koha/authorities
Marcel de Rooy 90c87b2ab2 Bug 29334: Do not apply defaultvalue to existing auth record
Note: The check in build_authorized_values_list with defaultvalue can be
simplified since $value may already contain the defaultvalue. It is filled
before the sub is called.
The test for inserting a blank option is generalized; and may be still
improved when using required attributes in the template? Note that we
might experience some browser issues for these placeholders.

Removed a few useless lines with respect to fields controlled
by itemtypes. The last assignment to $value was useless and
its probable intention unwanted (just use defaultvalue).

Test plan:
Put a defaultvalue in an authority framework.
Add a new authority. Check for that value.
Open existing authority. Clear field, save and reopen. Check if
field is still empty.
Bonus: test field controlled by authorised values.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-11-15 12:38:39 +01:00
..
auth_finder.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
authorities-home.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
authorities.pl Bug 29334: Do not apply defaultvalue to existing auth record 2021-11-15 12:38:39 +01:00
blinddetail-biblio-search.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
detail-biblio-search.pl Bug 17600: Fix GetTagsLabels imports 2021-08-03 14:35:18 +02:00
detail.pl Bug 17600: Fix GetTagsLabels imports 2021-08-03 14:35:18 +02:00
export.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
merge.pl Bug 17600: Add missing imports in authorities/ 2021-08-03 14:55:26 +02:00
merge_ajax.pl Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
ysearch.pl Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00