Bugzilla – Attachment 55275 Details for
Bug 17206
Can't switch to default framework
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17206: Fix switch to default framework
Bug-17206-Fix-switch-to-default-framework.patch (text/plain), 2.32 KB, created by
Jonathan Druart
on 2016-09-07 09:34:40 UTC
(
hide
)
Description:
Bug 17206: Fix switch to default framework
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-09-07 09:34:40 UTC
Size:
2.32 KB
patch
obsolete
>From 59334bd3b6a74e5a014e46afc8a8179adff76dad Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 7 Sep 2016 10:26:12 +0100 >Subject: [PATCH] Bug 17206: Fix switch to default framework > >When editing a bibliographic record, if you switch the framework to >default, the page is reloaded but the framework is not changed. >From the pl script, you can see that the frameworkcode is set to the one >of the biblio if set to false. The empty string, which means default, >should be taken into account. > >Test plan: >- Create a record using the Fast add framework >- Save the record >- Open the record for editing >- Use the "Settings" pull down to change the framework to default >- Try another framework >- Try changing to default from there >--- > cataloguing/addbiblio.pl | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl >index 3db9d8c..4d87595 100755 >--- a/cataloguing/addbiblio.pl >+++ b/cataloguing/addbiblio.pl >@@ -716,7 +716,7 @@ my $userflags = 'edit_catalogue'; > > my $changed_framework = $input->param('changed_framework'); > $frameworkcode = &GetFrameworkCode($biblionumber) >- if ( $biblionumber and not($frameworkcode) and $op ne 'addbiblio' ); >+ if ( $biblionumber and not( defined $frameworkcode) and $op ne 'addbiblio' ); > > if ($frameworkcode eq 'FA'){ > $userflags = 'fast_cataloging'; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >index 928956b..354fe43 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >@@ -122,7 +122,7 @@ > $(".change-framework").on("click", function(){ > var frameworkcode = $(this).data("frameworkcode"); > $("#frameworkcode").val( frameworkcode ); >- Changefwk( frameworkcode ); >+ Changefwk(); > }); > }); > >@@ -369,7 +369,7 @@ function GetZ3950Terms(){ > return strQuery; > } > >-function Changefwk(FwkList) { >+function Changefwk() { > var f = document.f; > f.op.value = "[% op %]"; > f.biblionumber.value = "[% biblionumberdata %]"; >-- >2.8.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17206
:
55275
|
55363
|
55455