[TikiWiki-commits] [Git][tikiwiki/tiki][master] [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 <6989d6fd7b3d1_3b184b9c6785@gitlab-sidekiq-low-urgency-cpu-bound-v2-65bcbb5696-sfb5s.mail>

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


Commits:
8a1cfd61 by Victor Emanouilov at 2026-02-09T14:45:33+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/8a1cfd6121d94ddb608db26849c91da10a859f19

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