Fix incorrect member variable, its $bIsQueue, not $bIsQueued. Fixes the number of items on a
multi-page queue
This commit is contained in:
@@ -566,7 +566,7 @@ class ObjectManager
|
|||||||
$sControls .= " <input type=\"submit\" value=\"Update\" />";
|
$sControls .= " <input type=\"submit\" value=\"Update\" />";
|
||||||
$sControls .= "</form></p>";
|
$sControls .= "</form></p>";
|
||||||
|
|
||||||
$iTotalEntries = $oObject->objectGetEntriesCount($this->bIsQueued, $this->bIsRejected);
|
$iTotalEntries = $oObject->objectGetEntriesCount($this->bIsQueue, $this->bIsRejected);
|
||||||
$iNumPages = ceil($iTotalEntries / $iItemsPerPage);
|
$iNumPages = ceil($iTotalEntries / $iItemsPerPage);
|
||||||
|
|
||||||
/* Check current page value */
|
/* Check current page value */
|
||||||
@@ -581,8 +581,8 @@ class ObjectManager
|
|||||||
|
|
||||||
/* Page controls */
|
/* Page controls */
|
||||||
$iPageRange = 7; // the number of page links we want to display
|
$iPageRange = 7; // the number of page links we want to display
|
||||||
display_page_range($iPage, $iPageRange, $iNumPages, $this->makeUrl()."&iItemsPerPage=".
|
display_page_range($iPage, $iPageRange, $iNumPages,
|
||||||
"$iItemsPerPage");
|
$this->makeUrl()."&iItemsPerPage=$iItemsPerPage");
|
||||||
|
|
||||||
echo $sControls;
|
echo $sControls;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user