× If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html

Issue with alphabox

More
3 years 6 months ago #5718 by Ian
Issue with alphabox was created by Ian
Hello,
I have found a curious issue in Joodb with the alphabox. I have a database with around 400 names. This only occurs on one of my databases, not all of them.

Attachment alphabox_bug_catalog-template-9oct2020.txt not found



When a letter is clicked in the alphabox list of individual letters, and there are more items than can be displayed on one page, clicking "Next" or a number does *not advance the page. The display stays on the first page of the listing.

This bug *only occurs when clicking on individual Letters.

When "All" is selected to display the entire contents, the "Prev | Next" buttons work properly to advance to the next page.

I have reviewed the scripts and everything appears in order. I have attached a copy for review.
Thank you to all who can assist with this,
Ian

This message has an attachment file.
Please log in or register to see it.

Please Log in to join the conversation.

More
3 years 5 months ago - 3 years 5 months ago #5737 by Dirk
Replied by Dirk on topic Issue with alphabox
It happens because the model resets the start to zero instead of taking the input value.

Please replace line 135 in /components/com_joodb/model/catalog.php
$this->setState('limitstart', 0);

to
$this->setState('limitstart', $app->input->get('start',0));

Alternatively you can replace the model with the following file

Attachment catalog.php_2020-10-26.zip not found

This message has an attachment file.
Please log in or register to see it.

Last edit: 3 years 5 months ago by Dirk.

Please Log in to join the conversation.

More
3 years 5 months ago #5738 by Ian
Replied by Ian on topic Issue with alphabox
Hi Dirk,
I have applied your fix to the catalog.php file, and it works very well.
The pagenav numbers now correctly advance to the next set of entries.

Thank you very, very much for that update.
It is a real lifesaver.

All the best,
Ian Watson

p.s. if you have a paypal donate feature, please let me know :)

Please Log in to join the conversation.

Moderators: Dirkjoest