Merge branch '138-fix-api-service-history-bug' into 'master'
Resolve "Fix api service history bug" Closes #138 See merge request jankstudio/resq!136
This commit is contained in:
commit
c46d43b001
1 changed files with 4 additions and 1 deletions
|
|
@ -1379,7 +1379,10 @@ class APIController extends Controller
|
|||
$jo_data['date_fulfilled'] = $jo->getDateFulfill()->format('M d, Y');
|
||||
break;
|
||||
case JOStatus::CANCELLED:
|
||||
$jo_data['date_cancelled'] = $jo->getDateCancel()->format('M d, Y');
|
||||
$date_cancel = $jo->getDateCancel();
|
||||
if ($date_cancel == null)
|
||||
$date_cancel = new DateTime();
|
||||
$jo_data['date_cancelled'] = $date_cancel->format('M d, Y');
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue