[TikiWiki-commits] [Git][tikiwiki/tiki][master] [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 <68a5e15232a7c_2cd6d94368ca@gitlab-sidekiq-low-urgency-cpu-bound-v2-579cf6b8b8-8p6g6.mail>

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


Commits:
d85d0fe1 by Victor Emanouilov at 2025-08-20T17:52:58+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
=====================================
@@ -607,6 +607,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/d85d0fe1d9de87f75472a796ca9fd33d0f5a72eb

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