Vox Populi(x) forum

Alexandria Book Library => Supporto (Support) => Topic started by: iberan on 11 August 2022, 09:08:50

Title: Pagination does not work in admin books list php 8
Post by: iberan on 11 August 2022, 09:08:50
Joomla: 3.10.10
com_abook: 3.1.5

After my ISP upgraded php 7.4 to php 8, pagination does not work in admin books list.

Clicking one of pagination numbers, next or end button, the list runs back to the first page (limitstart = 0).

All other lists' pagination working as well.

Any help would be appreciated.
Title: Re: Pagination does not work in admin books list php 8
Post by: iberan on 12 August 2022, 16:44:01
There is a "dirty" fix:

/administrator/components/com_abook/models/forms/filter_books.xml insert default = "1" into level and access option list

   
        <field
            name="level"
            type="integer"
            first="1"
            last="10"
            step="1"
              default="1"
            label="JOPTION_FILTER_LEVEL"
            languages="*"
            description="JOPTION_FILTER_LEVEL_DESC"
            onchange="this.form.submit();"
            >
            <option value="">JOPTION_SELECT_MAX_LEVELS</option>
        </field>
        <field
            name="access"
            type="accesslevel"
            label="JOPTION_FILTER_ACCESS"
            description="JOPTION_FILTER_ACCESS_DESC"
              default="1"
            onchange="this.form.submit();"
            >
            <option value="">JOPTION_SELECT_ACCESS</option>
        </field>
Title: Re: Pagination does not work in admin books list php 8
Post by: federica on 23 September 2022, 19:43:27
Hi iberan,
I'm not sure it's necessary. eg: Joomla 4.1.5 com_content does not set any default value, see administrator/components/com_content/forms/filter_articles.xml 104