[TikiWiki-commits] [Git][tikiwiki/tiki][master] [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 | <68d4450ec2df6_2ddf548690c9@gitlab-sidekiq-low-urgency-cpu-bound-v2-d5cf4b876-cjpw6.mail> |
Alain Cisirika pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
d69be1e2 by Alain Cisirika at 2025-09-24T19:14:53+00:00
[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
- - - - -
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/d69be1e26aa4dd5f698d6fcac71a1ce085dddd57
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/d69be1e26aa4dd5f698d6fcac71a1ce085dddd57
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