[Koha-bugs] [Bug 16070] Empty (undef) system preferences may cause some issues in combination with memcache

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 16 05:57:02 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16070

Srdjan Jankovic <srdjan at catalyst.net.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #49164|0                           |1
        is obsolete|                            |

--- Comment #4 from Srdjan Jankovic <srdjan at catalyst.net.nz> ---
Created attachment 49196
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=49196&action=edit
[SIGNED-OFF] Bug 16070: Default value for sysprefs should be an empty string

The default value for sysprefs should not be NULL but an empty string.
When a pref is cleared, it's set to an empty string, so it does not make
sense to create it with an undefined value.

The main purpose of this patch is to remove the warning in logs when a
pref is accessed for the first time and the cache is not yet populated.
It also ensures that the behavior will be the same for the first access
and the others.

Test plan:
SELECT COUNT(*) FROM systempreferences WHERE value IS NULL;
Should not return any results after the update DB entry executed.

Signed-off-by: Srdjan <srdjan at catalyst.net.nz>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list