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

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


Commits:
3cd57da3 by Victor Emanouilov at 2025-09-03T14:14:04+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/3cd57da338c19fb69a099d846f129cb84c675a90

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