bug: sticky due date isn't stick if there is a question about an issue
authorMichael Hafen <mdhafen@tech.washk12.org>
Tue, 2 Sep 2008 22:13:16 +0000 (16:13 -0600)
committerGalen Charlton <galen.charlton@liblime.com>
Mon, 6 Oct 2008 01:57:35 +0000 (20:57 -0500)
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.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
circ/circulation.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl

index e6a92d9..70e7fd2 100755 (executable)
@@ -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');
index 5ee4ae1..17d579d 100644 (file)
@@ -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>