Commit 8c3361a9 authored by efalcy's avatar efalcy

hotline #76601 : optimize adduser in newsletter

parent 4fa5334a
Pipeline #4473 passed with stage
in 34 minutes and 43 seconds
- ticket #76601 : Optimisation des performance lors d'inscription à la newsletter
\ No newline at end of file
......@@ -292,10 +292,9 @@ class Class_Newsletter extends Storm_Model_Abstract {
public function subscribeToDedicatedGroup($user) {
$this->getDedicatedGroup()
->addUser($user)
->save();
$ded = $this->getDedicatedGroup();
Class_UserGroupMembership::newInstance(['user_group' => $ded,
'user' => $user])->save();
return $this;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment