bug 2841: add an hidden field with booksellerid
authorNahuel Angelinetti <nahuel.angelinetti@biblibre.com>
Wed, 3 Dec 2008 16:52:39 +0000 (17:52 +0100)
committerGalen Charlton <galen.charlton@liblime.com>
Thu, 11 Dec 2008 16:15:31 +0000 (10:15 -0600)
The bug throw because the booksellerid is not in the request, and the newordersuggestion.pl need this one to import
it in a new order.
So I just added an hidden input in the search form.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/includes/suggestions-add-search.inc

index a027dba..16a16ed 100644 (file)
@@ -48,6 +48,7 @@ YAHOO.util.Event.onContentReady("header_search", function() {
        <div id="suggestions_search" class="residentsearch">
        <p class="tip">Suggestions Search:</p>
        <form action="/cgi-bin/koha/acqui/newordersuggestion.pl" method="get">
+    <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR NAME="supplierid" -->" />
        <label for="searchtitle">Title:</label> <input type="text" id="searchtitle" name="title" size="10" value="<!-- TMPL_VAR NAME="title"-->" />
     <label for="searchauthor">Author:</label> <input type="text" id="searchauthor" name="author" size="10" value="<!-- TMPL_VAR NAME="author" -->" />
     <label for="searchpublishercode">Publisher:</label> <input type="text" id="searchpublishercode" name="publishercode" size="10" value="<!-- TMPL_VAR NAME="publishercode"-->" />