diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 2fd9b3ce15..cafa6b467d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2009-12-16 Miguel de Dios + + * godmode/modules/manage_network_components.php: fix re-duplicate modules + now only generate one copy. + Fixes: 2915470 + 2009-12-16 Miguel de Dios * include/fgraph.php: fix print image error as tag instead content diff --git a/pandora_console/godmode/modules/manage_network_components.php b/pandora_console/godmode/modules/manage_network_components.php index c0f367e366..71695d14b7 100644 --- a/pandora_console/godmode/modules/manage_network_components.php +++ b/pandora_console/godmode/modules/manage_network_components.php @@ -276,24 +276,11 @@ foreach ($components as $component) { $data[6] = '' . - print_input_image ('dup', 'images/copy.png', 1, '', true, array ('title' => __('Duplicate'))) . ''; -// $data[6] .= '
'; -// $data[6] .= print_input_hidden ('duplicate_network_component', 1, true); -// $data[6] .= print_input_hidden ('source_id', $component['id_nc'], true); -// $data[6] .= print_input_image ('dup', 'images/copy.png', 1, '', true, array ('title' => __('Duplicate'))); -// $data[6] .= '
'; + print_image('images/copy.png', true, array('alt' => __('Duplicate'), 'title' => __('Duplicate'))) . ''; $data[6] .= '' . - print_input_image ('delete', 'images/cross.png', 1, '', true, array ('title' => __('Delete'))) . ''; -// $data[6] .= '
'; -// $data[6] .= print_input_hidden ('delete_component', 1, true); -// $data[6] .= print_input_hidden ('id', $component['id_nc'], true); -// $data[6] .= print_input_hidden ('search_id_group', $search_id_group, true); -// $data[6] .= print_input_hidden ('search_string', $search_string, true); -// $data[6] .= print_input_image ('delete', 'images/cross.png', 1, '', true, -// array ('title' => __('Delete'))); -// $data[6] .= '
'; + print_image('images/cross.png', true, array('alt' => __('Delete'), 'title' => __('Delete'))) . ''; array_push ($table->data, $data); }