Page 1 of 1

bug in models\guestbook.php

Posted: 01 Sep 2015, 18:19
by tomash21
Hello.
Seems like you have a bug in SiteName\components\com_phocaguestbook\models\guestbook.php

On line 305:
$order = $params->get('items_order', 'ordering');
But!
There are not `items_order` parameter in params but there is `items_orderby`!!!!!
check SiteName\components\com_phocaguestbook\views\guestbook\tmpl\default.xml
So it should be:
$order = $params->get('items_orderby', 'ordering');

That's why ordering doesn't work, when you change parameter in menu settings. After this fix everything works fine!

Re: bug in models\guestbook.php

Posted: 02 Sep 2015, 00:53
by Jan
Hi, thank you very much for the info, this will be fixed in next version.

Thank you, Jan

Re: bug in models\guestbook.php

Posted: 09 Mar 2018, 17:47
by Jan
Hi, should be OK in version 3.0.7

https://www.phoca.cz/news/963-phoca-gue ... 7-released

Jan