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

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


Commits:
6d949423 by Victor Emanouilov at 2026-02-24T11:04:31+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/6d9494239750fbc30fa065cf09b0b836019e1564

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