this patch add an "hidden" field in the template, that permit in
C4::VirtualShelves::Pages to get the right(privates) shelves with
GetShelves in$
of always public shelves.
So when a private shelf is wanted to be deleted, the script watch only in
public shelves if the shelf exists, and doesn't work.
---
.../opac-tmpl/prog/en/modules/opac-shelves.tmpl | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl
b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl
index 6f1619f..730d1b4 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl
@@ -224,6 +224,7 @@ $.tablesorter.addParser({
<form action="opac-shelves.pl" method="post">
<input type="hidden" name="shelves"
value="1" />
<input type="hidden" name="DEL-<!--
TMPL_VAR NAME="shelf" -->" value="1" />
+ <input type="hidden" name="display"
value="privateshelves" />
<!-- TMPL_IF NAME="confirm" -->
<input type="hidden" name="CONFIRM-<!--
TMPL_VAR NAME="confirm" -->" value="1" />
<input type="submit" class="confirm"
value="Confirm" />
--
1.5.6.3
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches