[#1437] Set the default_avatar_color property before saving a contact model. (#1464)

This commit is contained in:
Tom Rochette
2018-06-12 14:46:49 -04:00
committed by Alexis Saettler
parent 88dc0a6a74
commit 90dc58348c
8 changed files with 12 additions and 15 deletions
+1 -2
View File
@@ -126,9 +126,8 @@ class ContactsController extends Controller
$contact->last_name = $request->input('last_name', null);
$contact->nickname = $request->input('nickname', null);
$contact->save();
$contact->setAvatarColor();
$contact->save();
$contact->logEvent('contact', $contact->id, 'create');