更新
This commit is contained in:
parent
d029e37ab3
commit
a062b2ed2c
@ -304,6 +304,8 @@ class Task extends CommonModel
|
|||||||
'name' => trim($taskTitle),
|
'name' => trim($taskTitle),
|
||||||
'exchange_list' => $data['exchangeList'],
|
'exchange_list' => $data['exchangeList'],
|
||||||
'copied_list' => $data['copied_list'],
|
'copied_list' => $data['copied_list'],
|
||||||
|
'department' => $data['department_code'],
|
||||||
|
'department_liaison' => $data['liasion_code'],
|
||||||
];
|
];
|
||||||
$result = self::create($data);
|
$result = self::create($data);
|
||||||
// self::update(['sort' => $result['id']], ['id' => $result['id']]);
|
// self::update(['sort' => $result['id']], ['id' => $result['id']]);
|
||||||
|
@ -155,7 +155,7 @@ class Task extends BasicApi
|
|||||||
*/
|
*/
|
||||||
public function save(Request $request)
|
public function save(Request $request)
|
||||||
{
|
{
|
||||||
$data = $request::only('name,stage_code,project_code,assign_to,pcode,exchangeList,description,end_time,pri,executor,copied_list');
|
$data = $request::only('name,stage_code,project_code,assign_to,pcode,exchangeList,description,end_time,pri,executor,copied_list,department_code,liasion_code');
|
||||||
if (!isset($data['assign_to'])) {
|
if (!isset($data['assign_to'])) {
|
||||||
$data['assign_to'] = '';
|
$data['assign_to'] = '';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user