Koha-clms/Koha/Plugins
Tomas Cohen Arazi 90acef7a9b
Bug 23230: Make _version_compare OO context aware
On using _version_compare in plugins development, it would be nice if it
was able to be called as an object method. This way we don't need to
fully qualify it like this:

    Koha::Plugins::Base::_version_compare

and we can do

    $self->_version_compare

instead.

This patch implements this behavior change. It is backwards compatible
so plugins using the 'old way' don't break.

To test:
- Apply the unit tests patch
- Run:
  $ kshell
 k$ prove t/db_dependent/Plugins.t
=> FAIL: Tests fail
- Apply this patch
- Run:
 k$ prove t/db_dependent/Plugins.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-07-03 14:08:09 +01:00
..
Base.pm Bug 23230: Make _version_compare OO context aware 2019-07-03 14:08:09 +01:00
Handler.pm Bug 21073: (QA follow-up) Don't call -> twice! 2019-06-18 17:30:39 +01:00
Method.pm Bug 21073: Add new table, schema and classes 2019-06-18 17:29:13 +01:00
Methods.pm Bug 21073: (QA follow-up) Fix typo in class name 2019-06-19 09:55:31 +01:00