Skip to content

Commit

Permalink
fix(form): PHP warning when displaying form's historical
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Dec 1, 2021
1 parent 4f14232 commit 893efda
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,13 @@ public static function getSpecificValueToDisplay($field, $values, array $options
$class = "plugin-forcreator-active";
$title = __('Active');
}
$output = '<i class="fa fa-circle '
. "$faIcon $class"
. '" aria-hidden="true" title="' . $title . '"></i>';
if (isset($options['raw_data']['id'])) {
$output = '<i class="fa fa-circle '
. $class
. '" aria-hidden="true" title="' . $title . '"></i>';
$output = '<div style="text-align: center" onclick="plugin_formcreator.toggleForm(' . $options['raw_data']['id']. ')">' . $output . '</div>';
} else {
$output = $title;
}
return $output;
break;
Expand Down

0 comments on commit 893efda

Please sign in to comment.