Bug 10355: paramater 'object' lost on the road
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 16 Apr 2015 14:39:09 +0000 (16:39 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 8 Jun 2015 19:25:54 +0000 (16:25 -0300)
Test plan:
1) Go to any detail page in staff
2) Click on the modification log tab
3) Verify, that the object is prefilled with the records biblionumber
and you can also see it as parameter in the url
4) Click a second time on modification log to reset your search

Before this patch, the object parameter was empty.
It now contains the value of the biblionumber.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Work as described, no koha-qa errors

http://bugs.koha-community.org/show_bug.cgi?id=10335

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/includes/biblio-view-menu.inc
tools/viewlog.pl

index b2edbe6..8d9ceec 100644 (file)
@@ -30,7 +30,7 @@
 <ul>
 [% IF ( issuehistoryview ) %]<li class="active">[% ELSE %]<li>[% END %]
 <a href="/cgi-bin/koha/catalogue/issuehistory.pl?biblionumber=[% IF ( object ) %][% object %][% ELSE %][% IF ( object ) %][% object %][% ELSE %][% biblionumber %][% END %][% END %]" >Checkout history</a></li>
-[% IF ( CAN_user_tools_view_system_logs ) %][% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&amp;modules=CATALOGUING&amp;action=MODIFY&amp;object=[% biblionumber %]">Modification log</a> </li>[% END %]
+[% IF ( CAN_user_tools_view_system_logs ) %][% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&amp;modules=CATALOGUING&amp;action=MODIFY&amp;object=[% biblionumber or object %]">Modification log</a> </li>[% END %]
 </ul>
 </div>
 
index a382fc8..a13ec5f 100755 (executable)
@@ -101,6 +101,7 @@ if ( $src eq 'circ' ) {
 $template->param(
     debug => $debug,
     C4::Search::enabled_staff_search_views,
+    object => $object,
 );
 
 if ($do_it) {
@@ -167,7 +168,6 @@ if ($do_it) {
             datefrom => $datefrom,
             dateto   => $dateto,
             user     => $user,
-            object   => $object,
             info     => $info,
             src      => $src,
             modules  => \@modules,