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

            Bug ID: 12721
           Summary: Wrong fieldnames or trailing | in system preference
                    StatisticsFields lead to crash
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Patrons
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]

To reproduce:

1)
Edit system preference StatisticFields
Set it to:  
location|itype|ccode
Search a patron and display statistics

Result: OK, statistics displas

2)
Add a trailing | to StatisticFields:
location|itype|ccode|
Display statistics

Result:
Software error: Can't use an undefined value as an ARRAY reference at
/usr/lib/perl5/DBI.pm line 2054.
Display statistics

3)
Put a space between ccode and trailing |
location|itype|ccode |
Display statistics

Result: Statistic displays default table with Shelving locaton, Item type and 
Collection code

4)
Remove trailing | and misspell one field:
lcation|itype|ccode
Display statistics

Result:
Software error: Can't use an undefined value as an ARRAY reference at
/usr/lib/perl5/DBI.pm line 2054.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to