[TikiWiki-commits] [Git][tikiwiki/tiki][29.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 <699d69b863e10_3b18734c9027b@gitlab-sidekiq-low-urgency-cpu-bound-v2-86d7cb9b59-nfwht.mail>

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


Commits:
31f936b2 by Victor Emanouilov at 2026-02-24T11:04:47+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
=====================================
@@ -169,6 +169,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/31f936b2ce965d55101a06d0461d07d3bf462318

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