Skip to content

Commit

Permalink
Fix Host Template duplication
Browse files Browse the repository at this point in the history
Remove disabling of host templates for now, it was meant to stop you
from deleting Host Templates with hosts still attached, but it also
stopped you from being able to duplicate them
  • Loading branch information
cigamit committed May 28, 2015
1 parent ab2b87a commit abbe0ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions host_templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -593,12 +593,12 @@ function clearFilter() {
$disabled = false;
}

form_alternate_row('line' . $template['id'], true, $disabled);
form_alternate_row('line' . $template['id'], true);
form_selectable_cell("<a class='linkEditMain' href='" . htmlspecialchars('host_templates.php?action=edit&id=' . $template['id']) . "'>" . (strlen(get_request_var_request('filter')) ? preg_replace('/(' . preg_quote(get_request_var_request('filter'), '/') . ')/i', "<span class='filteredValue'>\\1</span>", htmlspecialchars($template['name'])) : htmlspecialchars($template['name'])) . '</a>', $template['id']);
form_selectable_cell($disabled ? 'No':'Yes', $template['id'], '', 'text-align:right');
form_selectable_cell(number_format($template['hosts']), $template['id'], '', 'text-align:right');
form_selectable_cell($template['id'], $template['id'], '', 'text-align:right');
form_checkbox_cell($template['name'], $template['id'], $disabled);
form_checkbox_cell($template['name'], $template['id']);
form_end_row();
}
/* put the nav bar on the bottom as well */
Expand Down

0 comments on commit abbe0ab

Please sign in to comment.