Skip to content

Commit

Permalink
fix(form_profile): not rendered selection of profiles
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jul 23, 2020
1 parent 4165e3a commit 1c0d27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/form_profile.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public static function showForForm(CommonDBTM $item, $withtemplate = '') {
],
]);
foreach ($result as $row) {
$checked = $row['is_enabled'] !== '0' ? ' checked' : '';
$checked = $row['is_enabled'] != '0' ? ' checked' : '';
echo '<tr><td colspan="2">';
echo '<input type="checkbox" name="profiles_id[]" value="'.$row['id'].'" '.$checked.'> ';
echo '<label>' . $row['name']. '</label>';
Expand Down

0 comments on commit 1c0d27d

Please sign in to comment.