[TikiWiki-commits] [Git][tikiwiki/tiki][26.x] [FIX] tabular api writer - parse single responses correctly

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

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


Commits:
ff843c6a by Victor Emanouilov at 2025-09-03T14:14:12+03:00
[FIX] tabular api writer - parse single responses correctly

- - - - -


1 changed file:

- lib/core/Tracker/Tabular/Writer/APIWriter.php


Changes:

=====================================
lib/core/Tracker/Tabular/Writer/APIWriter.php
=====================================
@@ -122,6 +122,10 @@ class APIWriter
                 $result = false;
             }
 
+            if (is_array($result) && count($result) == 1 && ! empty($result[0])) {
+                $result = $result[0];
+            }
+
             if ($result && ! $id && method_exists($entry, 'backfillPK')) {
                 foreach (explode('.', $this->config['modify_data_path']) as $field) {
                     if ($field !== '' && $result[$field]) {



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

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