mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-28 08:14:25 +02:00
Guillermo - staff/edit[skip ci]
This commit is contained in:
parent
6bad194903
commit
829e6060f5
@ -21,7 +21,7 @@ class DeleteStaffController extends Controller {
|
|||||||
foreach($staff->sharedTicketList as $ticket) {
|
foreach($staff->sharedTicketList as $ticket) {
|
||||||
$ticket->owner = null;
|
$ticket->owner = null;
|
||||||
$ticket->true = true;
|
$ticket->true = true;
|
||||||
$ticket->store()
|
$ticket->store();
|
||||||
}
|
}
|
||||||
|
|
||||||
$staff->delete();
|
$staff->delete();
|
||||||
|
@ -7,7 +7,7 @@ class Department extends DataStore {
|
|||||||
public static function getProps() {
|
public static function getProps() {
|
||||||
return [
|
return [
|
||||||
'name',
|
'name',
|
||||||
'sharedTicketList'
|
'sharedTicketList',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
5
tests/staff/add.rb
Normal file
5
tests/staff/add.rb
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
describe'/staff/add' do
|
||||||
|
request()
|
||||||
|
|
||||||
|
it 'should '
|
||||||
|
end
|
0
tests/staff/delete.rb
Normal file
0
tests/staff/delete.rb
Normal file
Loading…
x
Reference in New Issue
Block a user