Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Http/Controllers/ContactsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public function update(Request $request, Contact $contact)
->withErrors($validator);
}

if (! $contact->setName($request->input('firstname'), null, $request->input('lastname'))) {
if (! $contact->setName($request->input('firstname'), $request->input('lastname'), null)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remove the null value here, because the third parameter of setName is optionnal.

return back()
->withInput()
->withErrors('There has been a problem with saving the name.');
Expand Down