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

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


Commits:
ab37c762 by Victor Emanouilov at 2025-08-20T17:53:31+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
=====================================
@@ -603,6 +603,15 @@ $("input[name=ins_' . $filterFieldIdHere . '], select[name=ins_' . $filterFieldI
                 $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/ab37c7622ae30049cbbf208489709bf36c203500

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