[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [FIX] when syncing multiple tabulars on tracker item save - update permanent...

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6989d6fcc734a_3b309c4fc18334@gitlab-sidekiq-low-urgency-cpu-bound-v2-65bcbb5696-fdtbg.mail>

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


Commits:
e22345b9 by Victor Emanouilov at 2026-02-09T14:45:43+02:00
[FIX] when syncing multiple tabulars on tracker item save - update permanent values after each sync as they might be retrofitted

- - - - -


1 changed file:

- lib/core/Tracker/Tabular/Manager.php


Changes:

=====================================
lib/core/Tracker/Tabular/Manager.php
=====================================
@@ -142,6 +142,13 @@ class Manager
                         throw new Exception($result['errors'][0]);
                     }
                 }
+                if ($tabular['odbc_config'] || $tabular['api_config']) {
+                    // refresh values_by_perm_name as backfilled PK or other changed values (from other ODBC sources, for example) will not be avaialble for subsequent tabular syncs when we use more than 1 tabular format to sync
+                    foreach ($args['values_by_permname'] as $permName => $value) {
+                        $field = $definition->getFieldFromPermName($permName);
+                        $args['values_by_permname'][$permName] = $trklib->get_item_value($args['trackerId'], $args['object'], $field['fieldId'], false);
+                    }
+                }
             } catch (Exception $e) {
                 Feedback::error(tr("Failed synchronizing local changes with remote data source. Please try making these changes again later or make the same changes remotely. Error: %0", $e->getMessage()));
             }



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

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