Bug 15632: Koha::Patron::Messages - (follow-up) Remove AddMessage
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 1 Feb 2016 17:20:21 +0000 (17:20 +0000)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Thu, 3 Mar 2016 21:22:15 +0000 (21:22 +0000)
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
circ/add_message.pl

index e0ffc40..317f34b 100755 (executable)
@@ -49,7 +49,7 @@ Koha::Patron::Message->new(
         message_type   => $message_type,
         message        => $borrower_message,
     }
-);
+)->store;
 
 print $input->redirect(
     "/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber");