[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [FIX] tiki-jquery: Adjust parameter processing to handle empty objects correctly

"Bruno Kambere \(@kambereBr\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a2ef9e1aca2c_38af6bd00315ca@gitlab-sidekiq-low-urgency-cpu-bound-v2-c9f44b7d4-hpblw.mail>

Bruno Kambere pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki


Commits:
bf7b91ba by UshindiG at 2026-06-14T21:52:14+03:00
[FIX] tiki-jquery: Adjust parameter processing to handle empty objects correctly
---
* [FIX] tiki-jquery: Adjust parameter processing to handle empty objects correctly
---
* [FIX] tiki-jquery: Adjust parameter processing to handle empty objects correctly

See merge request tikiwiki/tiki!10210

(cherry picked from commit 852996bdf626a4e0e9f813bdf6503720f3c5c8ea)

See merge request tikiwiki/tiki!10519

- - - - -


1 changed file:

- lib/jquery_tiki/tiki-jquery.js


Changes:

=====================================
lib/jquery_tiki/tiki-jquery.js
=====================================
@@ -1539,7 +1539,10 @@ $(document).tiki('copy')(
         const params = [];
 
         for (const [key, value] of Object.entries(query)) {
-            if ($.isPlainObject(value) && ! $.isEmptyObject(value)) {
+            if ($.isPlainObject(value)) {
+                if ($.isEmptyObject(value)) {
+                    continue;
+                }
                 _keysNamespace.push(key);
                 const keyNamespace = _keysNamespace.at(-2);
                 const prefixInner = (keyNamespace ? `${keyNamespace}~`: '') + key + '[';



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

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/bf7b91ba9ab3c67e16b3d70187c79c588352bb2b
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
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.