[Koha-announce] [BUGFIX for 2.2.3] scrolling lists

Paul POULAIN paul.poulain at free.fr
Tue Aug 9 09:46:14 CEST 2005


Hi,

Ernesto Silva has fixed the following nasty bug (in 2.2.3) :
in MARC setup, if you have more than once a field mapped to a give
authorised value, when you duplicate a field (whatever the field), all
authorised values are defaulted to the same value. Bug still
unexplained. Don't occur if you just modify a biblio, or when you have
only once a given authorised value category.
Bug detected by EMN, that has a "LANG" authorised value for both "text
language" and "original text language".

If you encounter the problem, you can either wait for 2.2.4, or do the
following modif (Koha being installed in directory $KOHAROOT)
* open $KOHAROOT/cgi-bin/acqui.simple/addbiblio.pl
* go to line 151. It contains :
    return CGI::scrolling_list( -name     => 'field_value',
                                 -values   => \@authorised_values,
                                 -default  => $value,
                                 -labels   => \%authorised_lib,
                                 -size     => 1,
                                 -multiple => 0 );
* add -override => 1, to have :
    return CGI::scrolling_list( -name     => 'field_value',
                                 -values   => \@authorised_values,
                                 -default  => $value,
                                 -labels   => \%authorised_lib,
                                 -override => 1,
                                 -size     => 1,
                                 -multiple => 0 );
* save this file.

That's done !
Quite a simple fix for a nasty bug !!!

-- 
Paul POULAIN
Consultant indépendant en logiciels libres
responsable francophone de koha (SIGB libre http://www.koha-fr.org)





More information about the Koha-announce mailing list