-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Widget lister does not work correctly #155
Comments
@AntonMezger Would you mind providing a pull request? |
Hi, What do you mean? I provided a zip file with the changed files of version 9.5. I am not using a fork of your mkforms. I gust try to make my site working again. Btw return of array with majix routines does not work anymore when upgrading from version 3 to version 9.Best regardsDr sc. Anton C. MezgerStöckmattstrasse 145316 LeuggernLe 15 déc. 2022 à 11:47, Hannes Bochmann ***@***.***> a écrit :
@AntonMezger Would you mind providing a pull request?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
A pull request makes it much easier to check and incorporate your changes. Especially a review is teadious without it. As we are short on time this would speed up including your changes. |
I will create a project on github beginning of newxt week. for the majix problem I will create also this weekend an issue. The changes I made to the above mentioned files are of course quick and dirty, so that you will have to do that your proper way. However they worked for me. The main problem you had is that for may entries in lister only the first page was present. Best regards Anton |
Hi Hannes, I created on github the following repository, you will find my actual changes there. Please give me feedback about these. https://github.com/AntonMezger/sdgziel.git best regards Anton |
Sorry but this doesn't make it easier to incorporate your changes. Please have a look at this document: https://gist.github.com/MarcDiethelm/7303312 As we are busy as everyone we have no time to extract to necessary changes for this issue. |
Sorry about that, but I am not making any developments, but just wanted to point out a problem and an eventuel fix. The fix I did was in class.tx_mkforms_ds_db_Main.php and in class.tx_mkforms_widgets_list_Main.php. You must be aware of the fact that count($rows) gives number 0 back, therfore I count in the foreach loop. |
the main problm with the lister is that you threw out the function gettotalNumberOfRows that would give the right amount of data. In your case you request always so many data as fits on a page. That wont' work. you should enable that function again in order to get the non-limited amount of data. (in class.tx_mkforms_ds_db_Main.php |
Hi,
In my case the lister had only one page and I had to make minor corrections in two files to have it working correctly. You did not have the correct count for numrows, so the lister had only the first page. My corrections are joined, I used a variable totalnumberofrows to keep the number of records. By the way in fetchdata of the class.tx_mkforms_ds_db_Main.php, the number of records is not calculated correctly, so I modified that too.
I hope you will integrate these changes in the latest release.
Please give me some feedback
best regards
listeredit_user.zip
The text was updated successfully, but these errors were encountered: