[TikiWiki-commits] [Git][tikiwiki/tiki][28.x] [ENH] DynamicList tabular format: add id-raw format for direct import/export -...

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68a5e166ec593_2cd6e5c640e7@gitlab-sidekiq-low-urgency-cpu-bound-v2-579cf6b8b8-kpgpp.mail>

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


Commits:
fa649d5e by Victor Emanouilov at 2025-08-20T17:53:21+03:00
[ENH] DynamicList tabular format: add id-raw format for direct import/export - e.g. when syncing two Tiki sites via API

- - - - -


1 changed file:

- lib/core/Tracker/Field/DynamicList.php


Changes:

=====================================
lib/core/Tracker/Field/DynamicList.php
=====================================
@@ -610,6 +610,15 @@ $("input[name=\'' . $filterFieldHereName . '\'], select[name=\'' . $filterFieldH
                 $info['fields'][$permName] = $value;
             });
 
+        $schema->addNew($permName, 'id-raw')
+            ->setLabel($name)
+            ->setRenderTransform(function ($value) {
+                return $value;
+            })
+            ->setParseIntoTransform(function (&$info, $value) use ($permName) {
+                $info['fields'][$permName] = $value;
+            });
+
         return $schema;
     }
 



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

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