Koha-clms/Koha
Galen Charlton a43901717e Bug 10494: remove spurious warnings from the KohaBranchName plugin
The KohaBranchName plugin now returns an empty string if
given a NULL (undefined) library code or a library code that
is not present in the database (e.g., the '__ANY__' placeholder
that purchase suggestions can use).

To test:

[1] Create a purchase suggestion, setting the library
    to 'Any'.  Create a second one setting the library to
    a specific one.
[2] Go to the suggestions overview page in the staff interface.
    When you do so, the Apache logs should contain a warning
    that looks like this:

[Wed Jun 19 07:13:06 2013] [error] [client 192.168.1.10] [Wed Jun 19 07:13:06 2013] suggestion.pl: Use of uninitialized value in concatenation (.) or string at /home/koha/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt line 487., referer: http://koha-staff.metaquarry/cgi-bin/koha/acqui/acqui-home.pl

[3] Apply the patch.
[4] Refresh the suggestions overview page.  This time, there should be
    no new warning logged.
[5] Verify that the library names for the two pending suggestions
    created in step 1 are displayed correctly.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script. Also adds new tests!

Note: For the test plan to work you have to add the suggestion
from the intranet, as Any is not an available option in OPAC.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit ad2c1b3b8f)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 42d93d1e34)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit 42d93d1e34)
2013-08-02 16:09:39 -03:00
..
Borrower Bug 8890: Koha::Borrower::Files shouldn't use db in BEGIN 2012-10-24 17:52:40 +02:00
Cache Bug 8092 follow-up: Fix perlcritic violations 2012-06-14 17:56:56 +02:00
Filter/MARC Bug 9620: IncludeSeeFromInSearches and data in $9 subfields can break indexing 2013-03-11 22:35:54 +13:00
Indexer Bug 7818: utility to generate DOM indexing configs 2012-06-09 11:44:00 +02:00
RecordProcessor Bug 7417: Include see from references in bibliographic searches 2012-09-13 14:19:28 +02:00
SearchEngine Bug 9727: Fix typo in variable name 2013-03-29 19:16:19 +13:00
SuggestionEngine Merge remote-tracking branch 'origin/new/bug_8209' 2012-10-01 16:39:52 +02:00
Template/Plugin Bug 10494: remove spurious warnings from the KohaBranchName plugin 2013-08-02 16:09:39 -03:00
Authority.pm Bug 7417 follow-up: fix a perlcritic violation 2012-09-14 17:22:11 +02:00
Cache.pm Revert "Bug 8089: Use Koha::Cache for all caching" 2012-09-12 14:12:41 +02:00
Calendar.pm Bug 9211 - days_between wrong behaviour 2013-02-01 21:42:00 +13:00
DateUtils.pm Bug 8652: Followup: add a default value for date_from 2012-10-09 11:27:42 +02:00
RecordProcessor.pm Bug 7417: Include see from references in bibliographic searches 2012-09-13 14:19:28 +02:00
SearchEngine.pm Bug 8233 : SearchEngine: Add a Koha::SearchEngine module 2012-07-06 16:51:58 +02:00
SuggestionEngine.pm Bug 8726: ExplodedTerms suggestion plugin (functionality) 2012-09-28 17:08:21 +02:00