This topic contains 1 reply, has 2 voices, and was last updated by Alexandr Smaga 9 years, 10 months ago.
- Topic
I wonder that how function getOffset works in tracksideoro\vendor\oro\platform\src\Oro\Bundle\SoapBundle\Entity\Manager\ApiEntityManager.php .
protected function getOffset($page)
{
if (!$page !== null) {
$page = $page > 0 ? $page – 1 : 0;
}return $page;
}It looks totally incorrect.
It should like this:
private function calculateOffset() {
//Calculet offset for items based on current page number
$this->offset = ($this->currentpage – 1) * $this->limit;
}What do you think?
Regards,
Tom Nguyen
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.