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

"Baraka Kinywa \(@bkinywa24\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68b819eced027_2c12fe2ec99644@gitlab-sidekiq-low-urgency-cpu-bound-v2-dc78c9688-xf8tm.mail>

Baraka Kinywa pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
455f9a75 by MAGENE Sem Joel at 2025-09-03T13:27:35+03:00
[BP][ENH] DynamicList tabular format: add id-raw format for direct import/export -...
---
* [ENH] DynamicList tabular format: add id-raw format for direct import/export - e.g. when syncing two Tiki sites via API

(cherry picked from commit d85d0fe1d9de87f75472a796ca9fd33d0f5a72eb)

See merge request tikiwiki/tiki!8488

- - - - -


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/455f9a752c1a69472b0160867df48c0f5ec7e187

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