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

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

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


Commits:
d2523e20 by Victor Emanouilov at 2025-09-03T14:13:28+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/d2523e20fc43745e98e210963a4c8d6f1393f017

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