[TikiWiki-commits] [Git][tikiwiki/tiki][28.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 <68b822fa71b6_2cf1962c28277@gitlab-sidekiq-low-urgency-cpu-bound-v2-dc78c9688-sfl5g.mail>

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


Commits:
ded05223 by Victor Emanouilov at 2025-09-03T14:13:56+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/ded052235990210fb17586458e82d59d17c76a47

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