[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX][UI] List Pages: Fix error notice for maxRecords=-1

"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68af49556da81_2d71b10002157e@gitlab-sidekiq-low-urgency-cpu-bound-v2-75c5d7f49c-4vs4l.mail>

ushindi bienvenu pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
350660d2 by MAGENE Sem Joel at 2025-08-27T17:59:02+00:00
[FIX][UI] List Pages: Fix error notice for maxRecords=-1
---
* [FIX][UI] List Pages: Fix error notice for maxRecords=-1

See merge request tikiwiki/tiki!8325

- - - - -


2 changed files:

- tiki-listpages.php
- tiki-setup_base.php


Changes:

=====================================
tiki-listpages.php
=====================================
@@ -137,8 +137,6 @@ if (! empty($multiprint_pages)) {
     if (isset($_REQUEST['maxRecords'])) {
         $maxRecords = $_REQUEST['maxRecords'];
         $smarty->assign('maxRecords', $maxRecords);
-    } else {
-        $maxRecords = -1;
     }
     if (! isset($_REQUEST['sort_mode'])) {
         $sort_mode = $prefs['wiki_list_sortorder'] . '_' . $prefs['wiki_list_sortdirection'];


=====================================
tiki-setup_base.php
=====================================
@@ -379,7 +379,7 @@ $vartype['name'] = 'string';
 $vartype['reqId'] = '+hash';
 $vartype['days'] = '+int';
 $vartype['max'] = '+int';
-$vartype['maxRecords'] = '+int';
+$vartype['maxRecords'] = 'intSign';
 $vartype['numrows'] = '+int';
 $vartype['rows'] = '+int';
 $vartype['cols'] = '+int';



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

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