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

oops: Don't crash rendering new data forms

parent 8dfbc1ee
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ if (isset($options['entry']) && $options['mode'] == 'edit') { ?>
?>" data-entry-id="<?php echo $field->getAnswer()->get('entry_id');
?>"> <i class="icon-trash"></i> </a></div><?php
}
if (!$a->getValue() && $field->isRequiredForClose()) {
if ($a && !$a->getValue() && $field->isRequiredForClose()) {
?><i class="icon-warning-sign help-tip warning"
data-title="<?php echo __('Required to close ticket'); ?>"
data-content="<?php echo __('Data is required in this field in order to close the related ticket'); ?>"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment