I will do that and let you know.
How is the save() triggering a logic hook? What exactly is happening when the $this->bean->save(); is run.
*********EDIT**********
Tried the following
PHP Code:
$id = $this->bean->id;
$query = "UPDATE contacts_cstm SET fdc_spouse_partner_alert_c = '0' WHERE id_c = '$id'"
$bean->db->query($query, true);
I get message etc before the query, and then the view is not loading - Do I need to run a query against that DB in a different way in hte detail view as I do in the edit view?
**EDIT***
I had to use this
PHP Code:
$this->bean->db->query($query, true);
instead of
$bean->db->query($query, true);
Rgds
Chris
Bookmarks