- Issue created by @aaronpinero
- Status changed to Needs review
over 1 year ago 7:05pm 20 September 2023 - πΊπΈUnited States aaronpinero
I am adding a patch which seems to, at least in my limited manual testing, provide the solution. I updated the .module file to add a draggableviews_views_reset handler function. This function is a near exact copy of the draggableviews_views_submit function, except all the weight values are set to 0 when data is written to the database. I also updated the draggableviews_form_alter to add the reset button.
It would be great if a maintainer could take a look at this. I think this is an easy and sensible addition to the module.
- πΊπΈUnited States aaronpinero
I realize I provided an incorrect solution. I will update the patch so, to reset, the table rows are not written to the database in the reset handler.
- Status changed to Needs work
over 1 year ago 10:29pm 20 September 2023 - Status changed to Needs review
over 1 year ago 2:28pm 21 September 2023 - πΊπΈUnited States aaronpinero
Okay, I have provided an updated patch that, to reset a sort view, executes the deletion of rows from the db table but doesn't write any new data. I think this is more in keeping with the solution proposed in the original issue.
- Status changed to RTBC
2 months ago 3:19pm 22 October 2024 - π¨π¦Canada iStryker
We have been using it on all university sites for 11 months. I re-reviewed it. It works.
-
istryker β
committed 2bbdcdf9 on 2.1.x
Issue #3388659 by aaronpinero: Reset Button - feature request
-
istryker β
committed 2bbdcdf9 on 2.1.x
Automatically closed - issue fixed for 2 weeks with no activity.