Koha/admin
Jonathan Druart a844a2211f Bug 28567: Fix 0 vs "" vs undef on the admin library form
There are two things here:
* Branches.pickup_location has a default = 1 in DB, we should not set to undef if 0
or it will be set to 1 when stored.
* The other fields are all text (varchar, mediumtext or longtext) and
can be NULL. They are correct set to NULL when a new library is created
but set to an empty string when the library is modified. That's not
consistent

Test plan:
0. Don't apply the patch
1. Create a new library, set pickup location to "No"
2. Save
=> Pickup location is set to YES
=> In DB notice that the different values you didn't fill in are set to
NULL
3. Edit the library
4. Save
=> In DB notice that the different values you didn't fill in are now set
to an empty string
5. Apply the patch, restart_all
6. Run the updatedatabase script
=> In DB all the empty string values are set to NULL
7. Repeat 1 to 4 and confirm that everything is now working as expected

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-08-06 08:14:52 -04:00
..
searchengine/elasticsearch
add_user_search.pl Bug 23271: Replace search_limited with search_with_library_limits 2021-04-21 15:25:07 +02:00
additional-fields.pl
admin-home.pl
adveditorshortcuts.pl
aqbudgetperiods.pl
aqbudgets.pl
aqcontract.pl
aqplan.pl
audio_alerts.pl
auth_subfields_structure.pl
auth_tag_structure.pl
authorised_values.pl
authtypes.pl
background_jobs.pl
biblio_framework.pl
branch_transfer_limits.pl
branches.pl Bug 28567: Fix 0 vs "" vs undef on the admin library form 2021-08-06 08:14:52 -04:00
cash_registers.pl
categories.pl Bug 23271: Use Koha::Object::Limit::Library for Koha::Patron::Categories 2021-04-21 15:25:07 +02:00
check_budget_parent.pl
check_parent_total.pl
checkmarc.pl
cities.pl
classsources.pl
clone-rules.pl
columns_settings.pl
columns_settings.yml Bug 28408: Add new column to the table settings config 2021-07-30 10:29:39 -04:00
credit_types.pl
currency.pl
debit_types.pl
desks.pl
didyoumean.pl
edi_accounts.pl
edi_ean_accounts.pl
import_export_framework.pl
item_circulation_alerts.pl Bug 23271: Replace search_limited with search_with_library_limits 2021-04-21 15:25:07 +02:00
items_search_field.pl
items_search_fields.pl
itemtypes.pl Bug 23207: Add automatic checkin feature 2021-04-22 11:11:05 +02:00
koha2marclinks.pl
library_groups.pl
localization.pl
marc_subfields_structure.pl
marctagstructure.pl Bug 28207: Fix biblio_framework.frameworktext isn't in GROUP BY 2021-04-30 17:07:32 +02:00
matching-rules.pl
oai_set_mappings.pl
oai_sets.pl
overdrive.pl
patron-attr-types.pl Bug 23271: (follow-up) Fix typo 'limlits' 2021-04-23 13:55:09 +02:00
preferences.pl
share_content.pl
smart-rules.pl
sms_providers.pl
smtp_servers.pl
sru_modmapping.pl
systempreferences.pl Bug 28276: Do not fetch config ($KOHA_CONF) from memcached 2021-05-10 10:28:04 +02:00
transfer_limits.pl
transport-cost-matrix.pl
usage_statistics.pl
z3950servers.pl