[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Kaltura: fix entry ID filter and remove dynamic property statusString

"Bruno Kambere \(@kambereBr\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a3929936b71a_38196978899a8@gitlab-sidekiq-low-urgency-cpu-bound-v2-6796c46cfd-q488w.mail>

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


Commits:
8cc2668e by Landry Bitege at 2026-06-22T15:05:52+03:00
[FIX] Kaltura: fix entry ID filter and remove dynamic property statusString
---
* [FIX] Kaltura: fix entry ID filter and remove dynamic property statusString

See merge request tikiwiki/tiki!10502

- - - - -


3 changed files:

- templates/tiki-list_kaltura_entries_add_info.tpl
- tiki-kaltura_video.php
- tiki-list_kaltura_entries.php


Changes:

=====================================
templates/tiki-list_kaltura_entries_add_info.tpl
=====================================
@@ -8,7 +8,7 @@
         {/if}
         <tr>
             <th class="text-end">{tr}Status{/tr}</th>
-            <td>{$item->statusString}</td>
+            <td>{$statusAsString[$item->status]}</td>
         </tr>
         <tr>
             <th class="text-end">{tr}Media Id{/tr}</th>


=====================================
tiki-kaltura_video.php
=====================================
@@ -11,8 +11,8 @@
 $inputConfiguration = [
     [
         'staticKeyFilters'                => [
-        'mixId'                           => 'int',               //post
-        'mediaId'                         => 'int',               //post
+        'mixId'                           => 'word',              //post
+        'mediaId'                         => 'word',              //post
         'action'                          => 'word',              //post
         'name'                            => 'word',              //post
         'description'                     => 'xss',               //post


=====================================
tiki-list_kaltura_entries.php
=====================================
@@ -13,8 +13,8 @@ $inputConfiguration = [
         'staticKeyFilters'         => [
         'list'                     => 'string',               //get
         'action'                   => 'string',               //get
-        'mixId'                    => 'int',                  //get
-        'mediaId'                  => 'int',                  //get
+        'mixId'                    => 'word',                 //get
+        'mediaId'                  => 'word',                 //get
         'view'                     => 'string',               //get
         ],
     ],
@@ -156,12 +156,12 @@ try {
                 for ($i = 0; $i < $kmedialist->totalCount; $i++) {
                     if (! empty($kmedialist->objects[$i]) && $kmedialist->objects[$i] !== null) {
                         $kmedialist->objects[$i]->mediaType = $mediaTypeAsString[$kmedialist->objects[$i]->mediaType];
-                        $kmedialist->objects[$i]->statusString = $statusAsString[$kmedialist->objects[$i]->status];
                     }
                 }
             }
             $smarty->assign('klist', $kmedialist->objects);
             $smarty->assign('count', $kmedialist->totalCount);
+            $smarty->assign('statusAsString', $statusAsString);
         }
         $smarty->assign('entryType', 'media');
         $smarty->assign('view', $jitRequest->view->alpha());



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

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