记录延期 操作人
This commit is contained in:
parent
bf55e8bdf0
commit
d9a683c3cb
@ -235,7 +235,7 @@ if ($act == 'newevent') {
|
|||||||
$yanqi_history=$event['yanqi_history'];
|
$yanqi_history=$event['yanqi_history'];
|
||||||
if (!$yanqi_history) $yanqi_history = '[]';
|
if (!$yanqi_history) $yanqi_history = '[]';
|
||||||
$yanqi_history = json_decode($yanqi_history,true);
|
$yanqi_history = json_decode($yanqi_history,true);
|
||||||
$yanqi_history[] = array('date1'=>$event['start'],'date2'=>$dict['end'],'user'=>$user,'reason'=>$reason);
|
$yanqi_history[] = array('date1'=>$event['start'],'date2'=>$dict['end'],'user'=>$user['name'],'reason'=>$reason);
|
||||||
$dict['yanqi_history']=json_encode($yanqi_history,true);
|
$dict['yanqi_history']=json_encode($yanqi_history,true);
|
||||||
|
|
||||||
$sql = DB::update('calendar', $dict, "id='{$id}'");
|
$sql = DB::update('calendar', $dict, "id='{$id}'");
|
||||||
|
Loading…
Reference in New Issue
Block a user