Fixes #144
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user