This commit is contained in:
snipe
2014-06-06 13:40:54 -04:00
parent cbc945299e
commit dc256583d4
@@ -267,6 +267,7 @@ class UsersController extends AdminController {
// Create a new validator instance from our validation rules
$validator = Validator::make(Input::all(), $this->validationRules);
// If validation fails, we'll exit the operation now.
if ($validator->fails())
{
@@ -287,6 +288,14 @@ class UsersController extends AdminController {
$user->location_id = Input::get('location_id');
$user->manager_id = Input::get('manager_id');
if ($user->manager_id == "") {
$user->manager_id = NULL;
}
if ($user->location_id == "") {
$user->location_id = NULL;
}
// Do we want to update the user password?
if ($password)