Bugzilla – Attachment 3688 Details for
Bug 6067
When Add Duplicate changing framework would lose data
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-BUG6067-when-Add-Duplicate-change-in-framework-would.patch (text/plain), 2.31 KB, created by
Fridolin Somers
on 2011-04-05 13:20:11 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2011-04-05 13:20:11 UTC
Size:
2.31 KB
patch
obsolete
>From 15ce04074173d7caabd07db132996a36839f755b Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@progilone.fr> >Date: Tue, 5 Apr 2011 15:15:35 +0200 >Subject: [PATCH] BUG6067 when Add Duplicate change in framework would loose data > >--- > cataloguing/addbiblio.pl | 7 +++++++ > .../prog/en/modules/cataloguing/addbiblio.tmpl | 2 +- > 2 files changed, 8 insertions(+), 1 deletions(-) > >diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl >index 60f8e15..43fc42f 100755 >--- a/cataloguing/addbiblio.pl >+++ b/cataloguing/addbiblio.pl >@@ -913,6 +913,9 @@ if ($biblionumber) { > #------------------------------------------------------------------------------------- > if ( $op eq "addbiblio" ) { > #------------------------------------------------------------------------------------- >+ $template->param( >+ biblionumberdata => $biblionumber, >+ ); > # getting html input > my @params = $input->param(); > $record = TransformHtmlToMarc( \@params , $input ); >@@ -996,6 +999,10 @@ elsif ( $op eq "delete" ) { > #---------------------------------------------------------------------------- > # If we're in a duplication case, we have to set to "" the biblionumber > # as we'll save the biblio as a new one. >+ $template->param( >+ biblionumberdata => $biblionumber, >+ op => $op, >+ ); > if ( $op eq "duplicate" ) { > $biblionumber = ""; > } >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl >index ba59280..ccfa577 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl >@@ -231,7 +231,7 @@ function GetZ3950Terms(){ > > function Changefwk(FwkList) { > var fwk = FwkList.options[FwkList.selectedIndex].value; >- window.location = "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!--TMPL_VAR Name="biblionumber"-->&breedingid=<!-- TMPL_VAR name="breedingid" -->&frameworkcode="+fwk; >+ window.location = "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumberdata" -->&op=<!-- TMPL_VAR NAME="op" -->&breedingid=<!-- TMPL_VAR NAME="breedingid" -->&mode=<!-- TMPL_VAR NAME="popup" -->&frameworkcode="+fwk; > > } > >-- >1.7.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 6067
:
3688
|
4147
|
4185