[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [FIX] odbc sync and auto-increments: prevent local deduplication

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <699d699b582aa_3b2ca358-3b0@gitlab-sidekiq-low-urgency-cpu-bound-v2-86d7cb9b59-6vfgb.mail>

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


Commits:
22f451c7 by Victor Emanouilov at 2026-02-24T11:04:19+02:00
[FIX] odbc sync and auto-increments: prevent local deduplication

- - - - -


1 changed file:

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


Changes:

=====================================
lib/core/Tracker/Field/AutoIncrement.php
=====================================
@@ -157,6 +157,17 @@ class Tracker_Field_AutoIncrement extends \Tracker\Field\AbstractItemField imple
             return;
         }
 
+        // prevent deduplication when an odbc tabular is used as remote value might interfere
+        try {
+            $definition = $this->getTrackerDefinition();
+            $tabulars = $definition->getSynchronizedTabulars('odbc');
+            if (! empty($tabulars)) {
+                return;
+            }
+        } catch (Exception $e) {
+            return;
+        }
+
         global $prefs;
         $trklib = TikiLib::lib('trk');
         $table = TikiDb::get()->table('tiki_tracker_item_fields');



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/22f451c78bddad2d6f029b0997f9a3d18e6df79b

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/22f451c78bddad2d6f029b0997f9a3d18e6df79b
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
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.