[TikiWiki-commits] [Git][tikiwiki/tiki][27.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 | <6989d702a7e78_3b67791dc127a8@gitlab-sidekiq-low-urgency-cpu-bound-v2-65bcbb5696-jvfxx.mail> |
Victor Emanouilov pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki
Commits:
e3037095 by Victor Emanouilov at 2026-02-09T14:45:50+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/e30370950a648066948a5c933aacbe2f35cd337c
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/e30370950a648066948a5c933aacbe2f35cd337c
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