[TikiWiki-commits] [Git][tikiwiki/tiki][28.x] [FIX] ItemLink false complain when zero is stored

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6940f2c155e58_2a17f8e0642e7@gitlab-sidekiq-low-urgency-cpu-bound-v2-5d64c6946b-p2nwd.mail>

Victor Emanouilov pushed to branch 28.x at Tiki Wiki CMS Groupware / Tiki


Commits:
401b6bb1 by Victor Emanouilov at 2025-12-16T07:48:44+02:00
[FIX] ItemLink false complain when zero is stored

- - - - -


1 changed file:

- lib/core/Tracker/Field/ItemLink.php


Changes:

=====================================
lib/core/Tracker/Field/ItemLink.php
=====================================
@@ -746,7 +746,7 @@ class Tracker_Field_ItemLink extends \Tracker\Field\AbstractItemField implements
 
         $indexRemote = array_filter($this->trackerField->getOption('indexRemote', []));
 
-        if (count($indexRemote) && is_numeric($value)) {
+        if (count($indexRemote) && is_numeric($value) && $value > 0) {
             $trklib = TikiLib::lib('trk');
             $trackerId = $this->trackerField->getOption('trackerId');
             $item = $trklib->get_tracker_item($value);



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/401b6bb10994ba5293280616668b281513f2e7a6

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/401b6bb10994ba5293280616668b281513f2e7a6
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.