Can you post an example? This crud.settings.delete_next
should work. Massimo On Aug 11, 3:18 am, davosmith <[email protected]> wrote: > I have a series of linked database tables: > > 'course' which contains several 'units' which contain several > 'topics'. > > On the 'unit' page, I display the details of the unit, a list of > topics and a link to edit the unit details. > > When you click on the edit link, a crud.update form is created, which > sends the user back to the 'unit' page, once the update is complete. > > The problem is, that if the user deletes the record for the unit, then > they need to be redirected to the 'course' page, rather than the > 'unit' page (as this unit no longer exists to be displayed). > > After looking through the source code, I can't find any way of doing > this - 'crud.settings.delete_next' is ignored in the crud.update form > and trying to alter the value of 'next' inside the 'ondelete' > function, will not work as the value of 'next' has already been copied > into a local variable by that point in the crud.update function. > > Does anyone have any helpful suggestions?

