]> git.koha-community.org Git - koha.git/commit
Bug 18174: Add update to Koha::Object
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 27 Feb 2017 09:57:18 +0000 (10:57 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 31 Mar 2017 14:13:53 +0000 (14:13 +0000)
commitcd812cb42136fb0dda895f0af69f8abd4fe07ac0
tree681bf7f8cb10236c1af99b0c9fa8eee63d02c882
parent512f79b87cb23346a785278d51b3c7a9c3983622
Bug 18174: Add update to Koha::Object

Since Koha::Objects has a update method, we should allow it too in
Koha::Object. Note that it is just redirecting to DBIx immediately.

Changed the exception when the method generates an error. The previous
code suggested that the method was not found, but this is not the case.

Test plan:
Run t/db_dependent/Koha/Object.t

Followed test plan, tests passes OK.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Object.pm
t/db_dependent/Koha/Object.t