[Koha-patches] [PATCH][followup] (bug #4931) fix forgottens input in buttons
Nahuel ANGELINETTI
nahuel.angelinetti at biblibre.com
Tue Jul 13 12:05:58 CEST 2010
the previous patch missed an hidden input in next buttons that break next page. This fix it.
---
.../prog/en/modules/tools/inventory.tmpl | 2 ++
tools/inventory.pl | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tmpl
index 36e8cc4..480441d 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tmpl
@@ -232,6 +232,7 @@ $(document).ready(function(){
</form>
<!-- TMPL_IF NAME="offset" -->
<form method="post" action="/cgi-bin/koha/tools/inventory.pl">
+ <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
<input type="hidden" name="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" />
<input type="hidden" name="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
<input type="hidden" name="location" value="<!-- TMPL_VAR NAME="location" -->" />
@@ -245,6 +246,7 @@ $(document).ready(function(){
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="nextoffset" -->
<form method="post">
+ <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
<input type="hidden" name="location" value="<!-- TMPL_VAR NAME="location" -->" />
<input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branchcode" -->" />
<input type="hidden" name="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" />
diff --git a/tools/inventory.pl b/tools/inventory.pl
index 15f1c61..069d7c4 100755
--- a/tools/inventory.pl
+++ b/tools/inventory.pl
@@ -135,6 +135,7 @@ $template->param(
location => $location,
ignoreissued => $ignoreissued,
branchcode => $branchcode,
+ branch => $branch,
offset => $offset,
pagesize => $pagesize,
datelastseen => $datelastseen,
--
1.7.0.4
More information about the Koha-patches
mailing list