[Koha-patches] [PATCH] [bug #2531] fix the private shelf deletion in opac
Nahuel Angelinetti
nahuel.angelinetti at biblibre.com
Thu Nov 6 09:34:06 CET 2008
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
More information about the Koha-patches
mailing list