⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

something needed to be found in crud



khashabawy
  • profile picture
  • Member

Posted 22 May 2012 - 08:04 AM

hello there,

I want to suggest some thing that i really needed

in my table (users) i have a field called (u_deleted) it help me to flag a user as a deleted user

so that i made a before_delete callback function that marked user as deleted and make a where not to show deleted marked items

the 1st suggestion is to make a button for making any flags :)

the 2nd one is to make a rule saying (is_unique[user.u_email]) & (not_flaged[user.u_deleted.1]) so that when adding a new user it ignores if he is already when he is marked deleted

thanks :)

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 22 May 2012 - 22:53 PM

Please make sure that if you have the callback_before_delete it WILL delete the row. Instead you have to use the callback_delete that I have an example at: http://www.grocerycrud.com/documentation/options_functions/callback_delete