Bug in records_per_page used in an iframe

I just found a bug. When I use an iframe and i use records_per_page = 4, then I go to the page of the view and it keeps showing only 4 records per page even with 10 items showing on the items per page combo.

I just recorded a video showing the bug:

https://screenrec.com/share/goj2KGTzqv

Your current DaDaBIK version​

You are using DaDaBIK version 11.9-Elba platinum, installed on 07/07/2023 (installation code: 18545639f1389de5e7), the latest version of DaDaBIK is 11.9-Elba released on 23/03/2023

You are running the latest release of DaDaBIK

In case you want to upgrade to a more powerful edition (from Pro to Enterprise/Platinum, from Enterprise to Platinum) please contact us.

System info​

PHP Version: 7.4.33

mysql version: 5.7.23-23

Web server: Apache

Client: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.79

URL installation: https://pgrl.app.br/asm/glat/
 

eugenio

Administrator
Staff member
Hi Celson,
could you provide step by step instructions to replicate the issue?
The video looks very blurry to me, sorry but I find it hard to watch it :(

I don't think you are using the "show embed code" feature because the records per page combo does not appear there. Are you using the WP plugin?
 
Eugenio, I got the "show embed code" and changed it to use 4 records per page

1689776699673.png

Here is the step by step with images:

1. See the table on dashboard usind the modified iframe code and showing 4 records per page

1689776823995.png

2. Go to view on menu: Consultas / Saldos dos Meses
and note that only 4 records are shown on page even with the combo showing 10 items per page

1689776960345.png

3. change the items per page combo from 10 to 20 then change it back to 10

4. Now it shows normal with 10 records per page


1689777494775.png
 

eugenio

Administrator
Staff member
Hello Celson, this happens because the records per page menu probably does not have as option "4" (see the config param $records_per_page_ar)

Best,
 
Top