generalize count limit for lists and correct error handling for AJAX Quest listing
This commit is contained in:
parent
f42fa8d4e8
commit
dcdd274a55
3 changed files with 4 additions and 3 deletions
|
|
@ -96,7 +96,7 @@
|
|||
}
|
||||
|
||||
// Get Quests
|
||||
$limit = ($all != 'all') ? \nre\configs\AppConfig::$misc['questlist_limit'] : null;
|
||||
$limit = ($all != 'all') ? \nre\configs\AppConfig::$misc['lists_limit'] : null;
|
||||
$offset = ($all != 'all') ? max((intval($page) - 1), 0) * $limit : 0;
|
||||
$questsCount = $this->Quests->getCountForQuestsForSeminaryByOpenSubmissions($seminary['id'], $selectedQuestgroup, $selectedQuesttype);
|
||||
$quests = $this->Quests->getQuestsForSeminaryByOpenSubmissions($seminary['id'], $selectedQuestgroup, $selectedQuesttype, $limit, $offset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue