[Koha-patches] [PATCH] [bug #2840] Move a hidden tag, outside of the item loop
Nahuel Angelinetti
nahuel.angelinetti at biblibre.com
Wed Dec 3 12:17:09 CET 2008
The bug exists because for each table line, an hidden field was set, with subscriptionid, bug it must be outside of the items loop.
---
.../en/modules/serials/serials-collection.tmpl | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tmpl
index f32c776..f14a3e6 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tmpl
@@ -216,7 +216,6 @@ $(document).ready(function() {
<!--TMPL_IF Name="cannotedit"-->
disabled
<!--TMPL_ELSE -->
- <input type="hidden" name="subs" value="<!--TMPL_VAR Name="subscriptionid"-->" />
<!--TMPL_IF Name="subscriptionexpired"-->
<input type="checkbox" name="serialid" value="<!--TMPL_VAR Name="serialid"-->" disabled="disabled" />
<!--TMPL_ELSE-->
@@ -237,8 +236,9 @@ $(document).ready(function() {
<!--/TMPL_IF -->
</td>
</tr>
- <!-- /TMPL_LOOP -->
- </table>
+ <!-- /TMPL_LOOP -->
+ <input type="hidden" name="subs" value="<!--TMPL_VAR Name="subscriptionid"-->" />
+ </table>
<p><input type="submit" value="Edit serials" /></p>
</div>
<!--/TMPL_LOOP -->
--
1.5.6.3
More information about the Koha-patches
mailing list