Bug 24788: Remove autoloaded column accessors in Koha::Object->store
authorDavid Gustafsson <david.gustafsson@ub.gu.se>
Tue, 3 Mar 2020 13:32:31 +0000 (14:32 +0100)
committerJoy Nelson <joy@bywatersolutions.com>
Thu, 2 Apr 2020 16:18:17 +0000 (16:18 +0000)
commit508a6ad027b34c2279fbb1ff994152144b38ceb8
treef2d9b24821b8cc6da115ab684fcac4461a9cbb3f
parent61e7f3bbd7d6bf8e4341869255d9de8156643d69
Bug 24788: Remove autoloaded column accessors in Koha::Object->store

Columns are accessed as methods, relying on AUTOLOAD, in
Koha::Object->store. This could be a source of strange bugs
if a column name clashes with an existing method name.

To test:

1) Apply patches for Bug 14957
2) Follow the testing instructions, when saving a new marc rule and
error is thrown.
3) Apply patch
4) Try saving a new rule once again, this should now work

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
Koha/Object.pm