From: Ere Maijala Date: Sun, 16 Sep 2018 18:39:54 +0000 (+0300) Subject: Bug 16424: Make the svc/bib service keep the existing framework code X-Git-Tag: v18.11.00~744 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=02a0f3185c4aad3c712346e6bcedd0736725f699;hp=72e2d729f290201b48e09192f0dc4b7fdd26db6b;p=koha_ffzg Bug 16424: Make the svc/bib service keep the existing framework code Previously the framework code would have been reset when the record was saved, but that seems to have been a mistake. Signed-off-by: Michal Denar Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- diff --git a/svc/bib b/svc/bib index 5898517afb..1cb176e777 100755 --- a/svc/bib +++ b/svc/bib @@ -80,7 +80,7 @@ sub update_bib { my $query = shift; my $biblionumber = shift; my $old_record = GetMarcBiblio({ biblionumber => $biblionumber }); - my $frameworkcode = $query->url_param('frameworkcode') // ''; + my $frameworkcode = $query->url_param('frameworkcode') // GetFrameworkCode($biblionumber); unless (defined $old_record) { print $query->header(-type => 'text/xml', -status => '404 Not Found'); return;