$equals = " = ";
$quote = "'";
}
-
+
if (isset($this->_id)) {
$sql = "UPDATE civicrm_wci_widget SET title = '". $values['title']
. "', logo_image = '" . $values['logo_image'] . "', image = '"
$errorScope = CRM_Core_TemporaryErrorScope::useException();
try {
$transaction = new CRM_Core_Transaction();
+ CRM_Core_DAO::executeQuery("SET foreign_key_checks = 0;");
CRM_Core_DAO::executeQuery($sql);
+ CRM_Core_DAO::executeQuery("SET foreign_key_checks = 1;");
$transaction->commit();
if(isset($_REQUEST['_qf_CreateWidget_next'])) {
$widget_id = CRM_Core_DAO::singleValueQuery('SELECT LAST_INSERT_ID()');
CRM_Utils_System::redirect('?action=update&reset=1&id=' . $widget_id);
} else {
- CRM_Utils_System::redirect('?reset=1');
+ CRM_Utils_System::redirect('./?reset=1');
}
}
catch (Exception $e) {