no delete rows, only change status
- Single Page
Posted 22 June 2012 - 17:50 PM
no delete rows, only change status
Spanish: (Como podrÃa hacer para que cuando se elimine un registro realmente no se elimine, solo cambie su status)
Posted 22 June 2012 - 21:23 PM
Use callback_before_delete:
http://www.grocerycr...k_before_delete
If you don't want to log this info and really update what you can also do is use unset_delete:
http://www.grocerycrud.com/documentation/options_functions/unset_delete
Then you create an action named delete to update the record as you wish using the add_action function:
http://www.grocerycrud.com/documentation/options_functions/add_action
I hope this helps.
Posted 02 February 2013 - 09:10 AM
Posted 02 February 2013 - 10:02 AM
You can use the "unset_delete" function and the "add_action",
All function is here
Posted 22 April 2016 - 08:29 AM
I am facing the same problem I dont want to delete the record from db just want to update the status from 1 to zero but instead of using unset_delete can't I achieve this by chaning the defualt delete query. Please need help.