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

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

Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
d85146ce by Victor Emanouilov at 2025-12-16T07:48:08+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/d85146ce24805becfc352d18c4ebe345ea919744

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