[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [BP][FIX] tiki-list_articles.php: Fix maxRecords notice and enable multi-word search

"Alain Cisirika \(@cisirikalain\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68d44db161961_2cdf52060170@gitlab-sidekiq-low-urgency-cpu-bound-v2-57dbfc8f67-6vkwd.mail>

Alain Cisirika pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
fd14a27a by Alain Cisirika at 2025-09-24T19:52:53+00:00
[BP][FIX] tiki-list_articles.php: Fix maxRecords notice and enable multi-word search
---
* [FIX] tiki-list_articles.php: Fix maxRecords notice and enable multi-word search
---
* [FIX] tiki-list_articles.php : Notice: invalid variable value: [maxRecords] = -1

See merge request tikiwiki/tiki!8272

See merge request tikiwiki/tiki!8645

- - - - -


1 changed file:

- tiki-list_articles.php


Changes:

=====================================
tiki-list_articles.php
=====================================
@@ -26,9 +26,9 @@ $inputConfiguration = [
         'find_to_Month'                   => 'int',               //post
         'find_to_Day'                     => 'int',               //post
         'find_to_Year'                    => 'int',               //post
-        'find'                            => 'word',              //post
-        'type'                            => 'word',              //post
-        'topic'                           => 'word',              //post
+        'find'                            => 'string',              //post
+        'type'                            => 'string',              //post
+        'topic'                           => 'string',              //post
         'find_show_categories_multi'      => 'bool',              //post
         'categId'                         => 'int',               //get
         'lang'                            => 'lang',              //get
@@ -98,9 +98,8 @@ if (! isset($_REQUEST["offset"])) {
 $smarty->assign_by_ref('offset', $offset);
 if (! empty($_REQUEST['maxRecords'])) {
     $maxRecords = $_REQUEST['maxRecords'];
-} else {
-    $maxRecords = -1;
 }
+
 $smarty->assign_by_ref('maxRecords', $maxRecords);
 
 $visible_only = 'y';



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

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