[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] LISTEXECUTE: fallback page context for wiki/execute when current_object is empty

"Olivier Kango \(@olivierkango\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69a05554db8_3b18770c7386@gitlab-sidekiq-low-urgency-cpu-bound-v2-5cc5d688f4-njtzx.mail>

Olivier Kango pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
687e05af by Olivier Kango at 2026-02-26T16:03:51+02:00
[FIX] LISTEXECUTE: fallback page context for wiki/execute when current_object is empty
---
* [FIX] LISTEXECUTE: fallback page context for wiki/execute when current_object is empty

See merge request tikiwiki/tiki!9651

- - - - -


1 changed file:

- lib/jquery_tiki/wikiplugin-listexecute.js


Changes:

=====================================
lib/jquery_tiki/wikiplugin-listexecute.js
=====================================
@@ -71,7 +71,7 @@ $.fn.setupListExecute = function (id) {
         $.ajax({
             url: $.service('wiki', 'execute'),
             type: 'POST',
-            data: `page=${jqueryTiki.current_object.object}&` + $container.serialize() + '&' + (new URLSearchParams(window.location.search).toString()),
+            data: `page=${encodeURIComponent((jqueryTiki.current_object && jqueryTiki.current_object.object) || (new URLSearchParams(window.location.search).get('page')) || decodeURIComponent(((window.location.pathname || '').split('/').pop()) || '').replace(/\+/g, ' '))}&` + $container.serialize() + '&' + (new URLSearchParams(window.location.search).toString()),
             success: function(data) {
                 modal.tikiModal();
                 $('#tikifeedback .alert.alert-dismissible').remove();
@@ -175,7 +175,7 @@ $.fn.reloadListExecute = function() {
     $.ajax({
         url: $.service('wiki', 'execute'),
         type: 'GET',
-        data: `page=${jqueryTiki.current_object.object}&` + $container.serialize() + '&' + (new URLSearchParams(window.location.search).toString()),
+        data: `page=${encodeURIComponent((jqueryTiki.current_object && jqueryTiki.current_object.object) || (new URLSearchParams(window.location.search).get('page')) || decodeURIComponent(((window.location.pathname || '').split('/').pop()) || '').replace(/\+/g, ' '))}&` + $container.serialize() + '&' + (new URLSearchParams(window.location.search).toString()),
         success: function(data) {
             modal.tikiModal();
             let id = $container.data('id');



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

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