Pagination does not work in admin books list php 8

Started by iberan, 11 August 2022, 09:08:50

Previous topic - Next topic
A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

iberan

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.

A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

iberan

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>

federica

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
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]