[TikiWiki-commits] [Git][tikiwiki/tiki][28.x] [BP][FIX] PluginListExecute: report_status key is undefined or instantiated to...

"Joel Mpunga \(@joelmpunga79\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68b83ff3835d3_2cdcfa0872@gitlab-sidekiq-low-urgency-cpu-bound-v2-799dc879cb-q2wbj.mail>

Joel Mpunga pushed to branch 28.x at Tiki Wiki CMS Groupware / Tiki


Commits:
da92c2bb by Joel Mpunga at 2025-09-03T13:10:30+00:00
[BP][FIX] PluginListExecute: report_status key is undefined or instantiated to null and this must be handled in some interfaces
---
* [FIX] PluginListExecute: report_status key is undefined or instantiated to null and this must be handled in some interfaces
---
* [FIX] PluginListExecute: report_status key is undefined or instantiated to null and this must be handled in some interfaces

See merge request tikiwiki/tiki!6171

See merge request tikiwiki/tiki!7870

- - - - -


2 changed files:

- templates/search/list/table.tpl
- templates/wiki-plugins/wikiplugin_listexecute.tpl


Changes:

=====================================
templates/search/list/table.tpl
=====================================
@@ -155,9 +155,9 @@
                 {if $actions}
                     <td>
                         <input type="checkbox" name="objects{$iListExecute}[]" class="checkbox_objects form-check-input" aria-label="{tr}Select{/tr}" value="{$row.object_type|escape}:{$row.object_id|escape}">
-                        {if $row.report_status eq 'success'}
+                        {if isset($entry.report_status) && $row.report_status eq 'success'}
                             {icon name='ok'}
-                        {elseif $row.report_status eq 'error'}
+                        {elseif isset($entry.report_status) && $row.report_status eq 'error'}
                             {icon name='error'}
                         {/if}
                     </td>


=====================================
templates/wiki-plugins/wikiplugin_listexecute.tpl
=====================================
@@ -11,9 +11,9 @@
         {foreach from=$results item=entry}
             <li class="list-group-item list-group-item-action">
                 <input type="checkbox" class="checkbox_objects form-check-input me-1" aria-label="{tr}Select{/tr}" id="{$entry.object_type|replace:" ":"-"|escape}_{$entry.object_id|escape}" name="objects{$iListExecute}[]" value="{$entry.object_type|escape}:{$entry.object_id|escape}">
-                {if $entry.report_status eq 'success'}
+                {if isset($entry.report_status) && $entry.report_status eq 'success'}
                     {icon name='ok'}
-                {elseif $entry.report_status eq 'error'}
+                {elseif isset($entry.report_status) && $entry.report_status eq 'error'}
                     {icon name='error'}
                 {/if}
                 <label class="form-check-label stretched-link" for="{$entry.object_type|replace:" ":"-"|escape}_{$entry.object_id|escape}">{object_link type=$entry.object_type id=$entry.object_id backuptitle=$entry.title|escape}</label>



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

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