Bugzilla – Attachment 7943 Details for
Bug 7166
Modify order notes when basket is closed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7166 Followup redirect after editing the note
0001-Bug-7166-Followup-redirect-after-editing-the-note.patch (text/plain), 2.96 KB, created by
Jonathan Druart
on 2012-02-29 15:31:49 UTC
(
hide
)
Description:
Bug 7166 Followup redirect after editing the note
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-02-29 15:31:49 UTC
Size:
2.96 KB
patch
obsolete
>From 85483b1881ab2f12846f530be8827b1513481fb7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 29 Feb 2012 15:59:54 +0100 >Subject: [PATCH 1/1] Bug 7166: Followup: redirect after editing the note > >--- > acqui/modordernotes.pl | 2 + > .../prog/en/modules/acqui/modordernotes.tt | 34 ++++++++----------- > 2 files changed, 16 insertions(+), 20 deletions(-) > >diff --git a/acqui/modordernotes.pl b/acqui/modordernotes.pl >index 1518ad4..9a4c77a 100755 >--- a/acqui/modordernotes.pl >+++ b/acqui/modordernotes.pl >@@ -53,6 +53,8 @@ if($op and $op eq 'save') { > my $ordernotes = $input->param('ordernotes'); > $order->{'notes'} = $ordernotes; > ModOrder($order); >+ print $input->redirect($referrer); >+ exit; > } else { > $template->param( > ordernotes => $order->{'notes'}, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/modordernotes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/modordernotes.tt >index ea205d7..fac07ce 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/modordernotes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/modordernotes.tt >@@ -20,26 +20,20 @@ function returnToReferrer() { > <div id="bd"> > <div id="yui-main"> > <div class="yui-b"> >- [% IF ( save ) %] >- <p>Order [% ordernumber %] successfully modified.</p> >- <p>Return to <a href="[% referrer %]">previous page</a></p> >- [% ELSE %] >- <h1>Change order notes (order no. [% ordernumber %])</h1> >- >- <form action="/cgi-bin/koha/acqui/modordernotes.pl" method="post"> >- <fieldset> >- <label for="ordernotes">Notes:</label> >- <textarea id="ordernotes" name="ordernotes">[% ordernotes %]</textarea> >- </fieldset> >- <input type="hidden" name="referrer" value="[% referrer %]" /> >- <input type="hidden" name="ordernumber" value="[% ordernumber %]" /> >- <input type="hidden" name="op" value="save" /> >- <fieldset class="action"> >- <input type="submit" value="Change" /> >- <input type="button" value="Cancel" onclick="returnToReferrer();" /> >- </fieldset> >- </form> >- [% END %] >+ <h1>Change order notes (order no. [% ordernumber %])</h1> >+ <form action="/cgi-bin/koha/acqui/modordernotes.pl" method="post"> >+ <fieldset> >+ <label for="ordernotes">Notes:</label> >+ <textarea id="ordernotes" name="ordernotes">[% ordernotes %]</textarea> >+ </fieldset> >+ <input type="hidden" name="referrer" value="[% referrer %]" /> >+ <input type="hidden" name="ordernumber" value="[% ordernumber %]" /> >+ <input type="hidden" name="op" value="save" /> >+ <fieldset class="action"> >+ <input type="submit" value="Save" /> >+ <input type="button" value="Cancel" onclick="returnToReferrer();" /> >+ </fieldset> >+ </form> > </div> > </div> > </div> >-- >1.7.7.3 >
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 7166
:
7068
|
7736
|
7848
|
7887
|
7888
|
7889
|
7943
|
7950
|
7955
|
8289