Index: trunk/kernel/include/parseditem.php =================================================================== diff -u -r137 -r141 --- trunk/kernel/include/parseditem.php (.../parseditem.php) (revision 137) +++ trunk/kernel/include/parseditem.php (.../parseditem.php) (revision 141) @@ -1520,7 +1520,7 @@ } } - function Query_List($whereClause,$orderByClause=NULL,$JoinCats=TRUE) + function Query_List($whereClause,$orderByClause=NULL,$JoinCats=TRUE,$fix_method='set_first') { global $objSession, $Errors; @@ -1552,7 +1552,7 @@ if($objSession->HasSystemPermission("DEBUG.LIST")) echo $sql."
\n"; - return $this->Query_Item($sql); + return $this->Query_Item($sql, null, $fix_method); } function GetPerPage() @@ -1582,8 +1582,14 @@ { switch($fix_method) { - case 'set_first': $this->Page = 1; break; - case 'set_last': $this->Page = $NumPages; break; + case 'set_first': + $this->Page = 1; + //echo "Move 2 First (class ".get_class($this).")
"; + break; + case 'set_last': + $this->Page = $NumPages; + //echo "Move 2 Last (class ".get_class($this).")
"; + break; } $this->SaveNewPage(); }