Bug 14544: Fix regression on sending an email from staff
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 13 Nov 2015 16:49:53 +0000 (16:49 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 16 Nov 2015 18:44:37 +0000 (15:44 -0300)
The shelfnumber was not filled and result in a software error
Can't call method "get_contents" on an undefined value at
/home/koha/src/virtualshelves/sendshelf.pl line 74.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Whith patch mail is sent.
No errors

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/includes/virtualshelves-toolbar.inc

index 6ad8c64..e43cf13 100644 (file)
@@ -4,7 +4,7 @@
 [% IF op == 'view' %]
 
     function sendList(){
-        open(CGIBIN+'virtualshelves/sendshelf.pl?shelfid=[% shelfnumber %]','win_form','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100');
+        open(CGIBIN+'virtualshelves/sendshelf.pl?shelfid=[% shelf.shelfnumber %]','win_form','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100');
      }
 
      $(document).ready(function() {