mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-31 01:35:15 +02:00
Guillermo - staff/edit[skip ci]
This commit is contained in:
parent
895fbf011f
commit
980904f86e
@ -536,6 +536,7 @@ module.exports = [
|
|||||||
pages: 4
|
pages: 4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -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,
|
||||||
|
@ -7,7 +7,7 @@ class Department extends DataStore {
|
|||||||
public static function getProps() {
|
public static function getProps() {
|
||||||
return [
|
return [
|
||||||
'name',
|
'name',
|
||||||
'sharedTicketList',
|
'sharedTicketList'
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user