[Koha-bugs] [Bug 12721] Prevent software error if incorrect fieldnames given in sypref StatisticsFields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 25 23:26:57 CEST 2016


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

Aleisha Amohia <aleishaamohia at hotmail.com> changed:

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

--- Comment #17 from Aleisha Amohia <aleishaamohia at hotmail.com> ---
Created attachment 50669
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50669&action=edit
[SIGNED-OFF] Bug 12721 - Prevent software error if incorrect fieldnames given
in sypref StatisticsFields

To reproduce issue:
See comment #1

To test:
- Apply patch
- Leave syspref StatisticsFields empty
- Display statistics for an author

  => Result: Table displays Shelving location, Collection code, Item type
           (as before)

- Change syspref to any combination of location|itype|ccode
  => Result: Table displays columns as appropriate

- Change syspref to some garbage
  => Result: Same as with empty syspref (was crashing without patch)

- Change syspref to valid combination with trailing |
  => Result: Table displays columns as appropriate (was crashing
     without patch)

- Change syspref to a combination of valid and invalid fields
  (location|blah|ccode)
  => Result: Table displays column of valid fields only (was crashing
     without patch)

Signed-off-by: Aleisha <aleishaamohia at hotmail.com>

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


More information about the Koha-bugs mailing list