Skip to content
Snippets Groups Projects
Commit e632f5f6 authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix crash on ticket view with data required for close

parent cef96ec7
No related branches found
No related tags found
No related merge requests found
......@@ -802,8 +802,8 @@ implements RestrictedAccess, Threadable {
foreach ($forms as $form) {
foreach ($form->getFields() as $field) {
if ($field->isRequiredForClose()) {
if (!($field->answer->get('value'))) {
array_push($returnArray, $field->get('label'));
if (!$field->answer || !$field->answer->get('value')) {
array_push($returnArray, $field->getLocal('label'));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment