From: Chris Nighswonger Date: Wed, 11 Feb 2009 17:15:00 +0000 (-0500) Subject: kohabug 2955 (2/2) GetMarcFromKohaField now requires $framework X-Git-Tag: ontop~472 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=f185d69ad229d7682ac0ead110dac13a0d9cb13d;p=koha.git kohabug 2955 (2/2) GetMarcFromKohaField now requires $framework Failure to pass the $framework parameter by dateaccessioned.pl causes GetMarcFromKohaField to return 0,0 which breaks the value builder. The patch submitted corrects this. This patch is build against the current 3.1.x HEAD, however, this bug also affects the 3.0.x codebase and should be applied there as well. Signed-off-by: Galen Charlton --- diff --git a/cataloguing/value_builder/dateaccessioned.pl b/cataloguing/value_builder/dateaccessioned.pl index 19f72275ea..8c5cf74dc6 100755 --- a/cataloguing/value_builder/dateaccessioned.pl +++ b/cataloguing/value_builder/dateaccessioned.pl @@ -60,7 +60,7 @@ sub plugin_javascript { my $date = "$year-$pmon-$pmday"; # find the tag/subfield mapped to items.dateaccessioned - my ($tag,$subfield) = GetMarcFromKohaField("items.dateaccessioned"); + my ($tag,$subfield) = GetMarcFromKohaField("items.dateaccessioned",""); my $res = "