Skip to content

Commit

Permalink
Fixes #144
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Jun 6, 2014
1 parent cbc9452 commit dc25658
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/controllers/admin/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ public function postEdit($id = null)
// 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())
{
Expand All @@ -287,6 +288,14 @@ public function postEdit($id = null)
$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)
Expand Down

0 comments on commit dc25658

Please sign in to comment.