[Koha-patches] [PATCH] bug: sticky due date isn't stick if there is a question about an issue

Michael Hafen mdhafen at tech.washk12.org
Wed Sep 3 00:13:16 CEST 2008


the stickyduedate input isn't sent on from the question dialogs.  This
causes it to un-stick if there is a question.

Also removed month, day, and year as there seems to be no use for them.
---
 circ/circulation.pl                                |    3 ---
 .../prog/en/modules/circ/circulation.tmpl          |    4 +---
 2 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/circ/circulation.pl b/circ/circulation.pl
index f2af9be..cb21c70 100755
--- a/circ/circulation.pl
+++ b/circ/circulation.pl
@@ -121,9 +121,6 @@ $printer = C4::Context->userenv->{'branchprinter'};
 my $barcode        = $query->param('barcode') || '';
 
 $barcode = barcodedecode($barcode) if( $barcode && C4::Context->preference('itemBarcodeInputFilter'));
-my $year           = $query->param('year');
-my $month          = $query->param('month');
-my $day            = $query->param('day');
 my $stickyduedate  = $query->param('stickyduedate');
 my $duedatespec    = $query->param('duedatespec');
 my $issueconfirmed = $query->param('issueconfirmed');
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl
index 1229390..88bce98 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl
@@ -114,9 +114,7 @@ $.tablesorter.addParser({
     <input type="hidden" name="issueconfirmed" value="1" />
     <!-- TMPL_IF NAME="DEBT" --><input type="hidden" name="debt_confirmed" value="1" /><!-- /TMPL_IF -->
     <input type="hidden" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" />
-    <input type="hidden" name="day" value="<!-- TMPL_VAR name="day" -->" />
-    <input type="hidden" name="month" value="<!-- TMPL_VAR name="month" -->" />
-    <input type="hidden" name="year" value="<!-- TMPL_VAR name="year" -->" />
+    <input type="hidden" name="stickyduedate" value="<!-- TMPL_VAR NAME="stickyduedate" -->" />
     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
     <input type="submit" class="approve" value="Yes, Check Out (Y)" accesskey="y" />
 </form>
-- 
1.5.4.3




More information about the Koha-patches mailing list