Bug Fixing : Dynamic change of framework in edition wouldnot change framework in...
authorhdl <hdl>
Mon, 9 Jul 2007 13:04:55 +0000 (13:04 +0000)
committerhdl <hdl>
Mon, 9 Jul 2007 13:04:55 +0000 (13:04 +0000)
catalogue/MARCdetail.pl

index b0854f0..de2735d 100755 (executable)
@@ -94,7 +94,8 @@ sub get_authorised_value_desc ($$$$$$) {
 my $query        = new CGI;
 my $dbh          = C4::Context->dbh;
 my $biblionumber = $query->param('biblionumber');
-my $frameworkcode = GetFrameworkCode( $biblionumber );
+my $frameworkcode = $query->param('frameworkcode');
+$frameworkcode = GetFrameworkCode( $biblionumber ) unless ($frameworkcode);
 my $popup        =
   $query->param('popup')
   ;    # if set to 1, then don't insert links, it's just to show the biblio