[Koha-bugs] [Bug 29008] New: Avoid warning when checking Koha plugin version
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Sep 14 08:25:39 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29008
Bug ID: 29008
Summary: Avoid warning when checking Koha plugin version
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: fridolin.somers at biblibre.com
QA Contact: testopia at bugs.koha-community.org
In Koha plugins home page, each plugin min/max version is compared with actual
Koha version.
This uses metadatas assuming there are numbers, like 18.11 or 20.1100000.
But source code version is actually YY.MM.XX.YYY.ZZZ.
We sometimes find it in plugins, for examle :
https://github.com/thekesolutions/koha-plugin-bibliocommons/blob/c2da98f1bda450452ad687e5623f45939a967bdf/Koha/Plugin/Com/Theke/BiblioCommons.pm#L31
https://github.com/KohaSuomi/koha-plugin-sms-send-link-mobility-driver/blob/master/Koha/Plugin/Fi/KohaSuomi/SMSSendLinkMobilityDriver.pm#L22
This generates warning :
Argument "18.11.01" isn't numeric in numeric lt (<) at
/home/koha/src/Koha/Plugins/Base.pm line 377.: src/plugins/plugins-home.pl
We should allow this syntax in plugins metadatas.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list