Beispiel #1
0
 public function renameTag($accountId, $name, $newName)
 {
     //update account tags
     Account::updateAll(['$set' => ['tags.$.name' => $newName]], ['_id' => $accountId, 'tags.name' => $name]);
     Member::renameTag($accountId, $name, $newName);
     Campaign::renameTag($accountId, $name, $newName);
     $data = ['type' => 'tag_renamed', 'account_id' => $accountId, 'old_name' => $name, 'new_name' => $newName];
     $this->notifyModules($data);
 }