[Koha-bugs] [Bug 13028] Remove uninitialized value warning and add partial flag to cmp_sysprefs script

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 23 20:41:37 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13028

Chris Cormack <chris at bigballofwax.co.nz> changed:

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

--- Comment #3 from Chris Cormack <chris at bigballofwax.co.nz> ---
Created attachment 32641
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32641&action=edit
Bug 13028: Resolve uninitialized value in string eq at cmp_sysprefs.pl line 194

If you use the restore option with a partial pref file not containing a
version, you will have this error. Also the count of updated prefs will be one
too high.

This is corrected by a better test of the hash value in the CheckVersionPref
subroutine.

Test plan:
[1] Create a small pref file and remove the version pref (if present). You
could for instance do a pref backup and remove most lines.
[2] Use the restore option with and without this patch.
    So, something like:
        maintclone/misc/maintenance/cmp_sysprefs.pl -c r -f 9999crucial.pref
[3] Check on the error message and the pref count.

Signed-off-by: Chris Cormack <chris at bigballofwax.co.nz>

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


More information about the Koha-bugs mailing list