Merge pull request #11337 from mikeroq/fixes/user_edit_website_missing

Fixed #11332 Added website field that was missing from update and store method.
This commit is contained in:
snipe 2022-06-22 10:16:38 -07:00 committed by GitHub
commit 135fdae209
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,6 +116,7 @@ class UsersController extends Controller
$user->country = $request->input('country', null);
$user->zip = $request->input('zip', null);
$user->remote = $request->input('remote', 0);
$user->website = $request->input('website', null);
// Strip out the superuser permission if the user isn't a superadmin
$permissions_array = $request->input('permission');
@ -266,6 +267,7 @@ class UsersController extends Controller
$user->activated = $request->input('activated', 0);
$user->zip = $request->input('zip', null);
$user->remote = $request->input('remote', 0);
$user->website = $request->input('website', null);
// Update the location of any assets checked out to this user
Asset::where('assigned_type', User::class)
@ -636,4 +638,4 @@ class UsersController extends Controller
return redirect()->back()->with('error', 'User is not activated, is LDAP synced, or does not have an email address ');
}
}
}