[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [FIX] Must Read: Restore the feature in new Tiki version

"Domeshow Emmanuel \(@Domeshow\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a16fc1810e1e_38192fe440982@gitlab-sidekiq-low-urgency-cpu-bound-v2-5bdf85c9dc-5hsws.mail>

Domeshow Emmanuel pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki


Commits:
364e2b0d by Domeshow Emmanuel at 2026-05-27T17:07:16+03:00
[FIX] Must Read: Restore the feature in new Tiki version
---
* [FIX] Must Read: Restore the feature in new Tiki version

See merge request tikiwiki/tiki!10378

(cherry picked from commit 51fa2b6715097ce20d24b0fd5dd4fcf8c5dcfaae)

See merge request tikiwiki/tiki!10384

- - - - -


3 changed files:

- lib/core/Services/Comment/Controller.php
- lib/core/Services/MustRead/Controller.php
- templates/mustread/list.tpl


Changes:

=====================================
lib/core/Services/Comment/Controller.php
=====================================
@@ -30,7 +30,7 @@ class Services_Comment_Controller
             $objectId = $input->objectId->digits();
         }
 
-        if ($objectId !== $input->objectId->none() || ! $this->isValidObject($type, $objectId)) {
+        if ($objectId != $input->objectId->none() || ! $this->isValidObject($type, $objectId)) {
             $objectId = $input->objectId->xss();
             throw new Services_Exception(tr('Invalid %0 ID: %1', $type, $objectId), 403);
         }


=====================================
lib/core/Services/MustRead/Controller.php
=====================================
@@ -35,7 +35,7 @@ class Services_MustRead_Controller
 
         return [
             'title' => tr('Must Read'),
-            'list' => $result,
+            'listMR' => $result,
             'canAdd' => Tracker_Item::newItem($prefs['mustread_tracker'])->canModify(),
             'selection' => $selection ? $selection->getId() : null,
             'notification' => $input->notification->word(),


=====================================
templates/mustread/list.tpl
=====================================
@@ -17,7 +17,7 @@
                 <th>{tr}Action Req'd{/tr}</th>
                 <th>{tr}Complete{/tr}</th>
             </tr>
-            {foreach $list as $entry}
+            {foreach $listMR as $entry}
                 <tr {if $selection eq $entry.object_id}class="active"{/if}>
                     <td><a href="{service controller=mustread action=list id=$entry.object_id}">{$entry.title|escape}</a></td>
                     <td>{$entry.creation_date|tiki_short_datetime}</td>



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

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