include profile name in update query
This commit is contained in:
parent
d9e51c67f6
commit
a16be91822
1 changed files with 2 additions and 1 deletions
|
@ -235,10 +235,11 @@ class CRM_Twingle_Profile {
|
||||||
if ($this->id !== NULL) {
|
if ($this->id !== NULL) {
|
||||||
// existing profile -> just update the config
|
// existing profile -> just update the config
|
||||||
CRM_Core_DAO::executeQuery(
|
CRM_Core_DAO::executeQuery(
|
||||||
"UPDATE civicrm_twingle_profile SET config = %2 WHERE id = %1",
|
"UPDATE civicrm_twingle_profile SET config = %2, name = %3 WHERE id = %1",
|
||||||
[
|
[
|
||||||
1 => [$this->id, 'String'],
|
1 => [$this->id, 'String'],
|
||||||
2 => [json_encode($this->data), 'String'],
|
2 => [json_encode($this->data), 'String'],
|
||||||
|
3 => [$this->name, 'String'],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue