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

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


Commits:
691754b5 by Victor Emanouilov at 2025-12-16T07:48:53+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
=====================================
@@ -705,7 +705,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/691754b5e1749b4868d7bab1402bfa6841b546e0

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