[TikiWiki-commits] [Git][tikiwiki/tiki][28.x] [BP][FIX] PluginList: display format="trackerrender" does not show custom...

"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <688d1918cc4bc_2c26b5484308a4@gitlab-sidekiq-low-urgency-cpu-bound-v2-655597b6c5-vhxlg.mail>

ushindi bienvenu pushed to branch 28.x at Tiki Wiki CMS Groupware / Tiki


Commits:
336c0eba by ushindi bienvenu at 2025-08-01T19:38:48+00:00
[BP][FIX] PluginList: display format="trackerrender" does not show custom status but the default ones
---
* [FIX] PluginList: display format="trackerrender" does not show custom status but the default ones
---
* [FIX] PluginList: display format="trackerrender" does not show custom status but the default ones

See merge request tikiwiki/tiki!8093

See merge request tikiwiki/tiki!8161

- - - - -


1 changed file:

- lib/core/Search/Formatter/ValueFormatter/Trackerrender.php


Changes:

=====================================
lib/core/Search/Formatter/ValueFormatter/Trackerrender.php
=====================================
@@ -36,26 +36,27 @@ class Search_Formatter_ValueFormatter_Trackerrender extends Search_Formatter_Val
     public function render($name, $value, array $entry)
     {
         if ($name === 'tracker_status') {
+            $options  = TikiLib::lib('trk')->get_tracker_options($entry['tracker_id']);
             switch ($value) {
                 case 'o':
                     $status = 'open';
-                    $istatus = tra('Open');
+                    $istatus = $options['altOpenStatus'] ?: tra('Open');
                     break;
                 case 'p':
                     $status = 'pending';
-                    $istatus = tra('Pending');
+                    $istatus = $options['altPendingStatus'] ?: tra('Pending');
                     break;
                 default:
                 case 'c':
                     $status = 'closed';
-                    $istatus = tra('Closed');
+                    $istatus = $options['altClosedStatus'] ?: tra('Closed');
                     break;
             }
 
             $smarty = TikiLib::lib('smarty');
             return smarty_function_icon(['name' => 'status-' . $status, 'iclass' => 'tips', 'ititle' => ':'
                 . $istatus ], $smarty->getEmptyInternalTemplate());
-        } elseif (substr($name, 0, 14) !== 'tracker_field_' && $name !== 'title') {
+        } elseif (! str_starts_with($name, 'tracker_field_') && $name !== 'title') {
             return $value;
         }
 



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

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