[TikiWiki-commits] [Git][tikiwiki/tiki][master] [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 <6a2d9df316b5_3875e3b64820e2@gitlab-sidekiq-low-urgency-cpu-bound-v2-c9f44b7d4-5mkvl.mail>

Bruno Kambere pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
852996bd by UshindiG at 2026-06-13T21:02:18+03:00
[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

- - - - -


1 changed file:

- lib/jquery_tiki/tiki-jquery.js


Changes:

=====================================
lib/jquery_tiki/tiki-jquery.js
=====================================
@@ -1584,7 +1584,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/852996bdf626a4e0e9f813bdf6503720f3c5c8ea

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