[TikiWiki-commits] [Git][tikiwiki/tiki][29.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 <6940f2a823d76_2a17fa84961c2@gitlab-sidekiq-low-urgency-cpu-bound-v2-5d64c6946b-2rjkz.mail>

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


Commits:
af1ed014 by Victor Emanouilov at 2025-12-16T07:48:19+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/af1ed014adbc46b12918bada19eefe1b853908d5

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/af1ed014adbc46b12918bada19eefe1b853908d5
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.