Issue with getPrevAndNextRecords() and hidden records
3 posts by 2 authors in: Forums > CMS Builder
Last Post: June 26, 2013 (RSS)
By mizrahi - June 26, 2013
The getPrevAndNextRecords() function gets tripped up by hidden records. If you have a hidden record anywhere within the table, the function "breaks". Any chance this could be updated to address this problem?
By Jason - June 26, 2013
Hi,
Yes, getPrevAndNextRecords() can run into issues when a hidden field is present. The way to work around this is to add this to your where clause:
ie
'where' => 'hidden = 0',
That should take care of the issue for you. Please let me know if you need anything else.
Thanks,
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/