Guillermo - staff/edit[skip ci]

This commit is contained in:
Ivan Diaz 2016-12-08 14:30:19 -03:00
parent 895fbf011f
commit 980904f86e
4 changed files with 6 additions and 2 deletions

View File

@ -536,6 +536,7 @@ module.exports = [
pages: 4 pages: 4
} }
} }
} }
}, },
{ {

View File

@ -27,6 +27,7 @@ class GetAllStaffController extends Controller {
} }
$staffArray[] = [ $staffArray[] = [
'id' => $staff->id,
'name' => $staff->name, 'name' => $staff->name,
'email' => $staff->email, 'email' => $staff->email,
'profilePic' => $staff->profilePic, 'profilePic' => $staff->profilePic,

View File

@ -7,7 +7,7 @@ class Department extends DataStore {
public static function getProps() { public static function getProps() {
return [ return [
'name', 'name',
'sharedTicketList', 'sharedTicketList'
]; ];
} }

View File

@ -30,9 +30,11 @@ class Staff extends DataStore {
public static function getUser($value, $property = 'id') { public static function getUser($value, $property = 'id') {
return parent::getDataStore($value, $property); return parent::getDataStore($value, $property);
} }
public function toArray() { public function toArray() {
return [ return [
'name'=> $this->name, 'id' => $this->id,
'name' => $this->name,
'email' => $this->email, 'email' => $this->email,
'profilePic' => $this->profilePic, 'profilePic' => $this->profilePic,
'level' => $this->level, 'level' => $this->level,