MT2116, Follow-up: CSV Export, fix backporting bugs

This commit is contained in:
Paul Poulain 2010-02-01 17:44:21 +01:00 committed by Henri-Damien LAURENT
parent 5af80ab9ab
commit 7b27b9ecb2
3 changed files with 2 additions and 2 deletions

View File

@ -1110,7 +1110,7 @@ sub GetKohaAuthorisedValuesFromField {
my $dbh = C4::Context->dbh;
my $avcode = GetAuthValCodeFromField($field, $subfield, $fwcode);
if ($avcode) {
my $sth = $dbh->prepare("select authorised_value, lib, lib_opac from authorised_values where category=? ");
my $sth = $dbh->prepare("select authorised_value, lib from authorised_values where category=? ");
$sth->execute($avcode);
while ( my ($val, $lib, $lib_opac) = $sth->fetchrow_array ) {
$values{$val} = ($opac && $lib_opac) ? $lib_opac : $lib;

View File

@ -360,7 +360,6 @@ sub marc2csv {
($preprocess,$postprocess, $fieldprocessing) = YAML::LoadFile($configfile);
}
warn $fieldprocessing;
# Preprocessing
eval $preprocess if ($preprocess);

View File

@ -16,6 +16,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
(13, 'delete_anonymize_patrons', 'Delete old borrowers and anonymize circulation history (deletes borrower reading history)'),
(13, 'batch_upload_patron_images', 'Upload patron images in batch or one at a time'),
(13, 'schedule_tasks', 'Schedule tasks to run'),
(13, 'manage_csv_profiles', 'Manage CSV export profiles'),
(15, 'check_expiration', 'Check the expiration of a serial'),
(15, 'claim_serials', 'Claim missing serials'),
(15, 'create_subscription', 'Create a new subscription'),