2009-12-16 Miguel de Dios <miguel.dedios@artica.es>

* godmode/modules/manage_network_components.php: fix re-duplicate modules
	now only generate one copy.
	Fixes: 2915470



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2205 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-12-16 15:28:22 +00:00
parent 9255306789
commit bb46924bf6
2 changed files with 8 additions and 15 deletions

View File

@ -1,3 +1,9 @@
2009-12-16 Miguel de Dios <miguel.dedios@artica.es>
* godmode/modules/manage_network_components.php: fix re-duplicate modules
now only generate one copy.
Fixes: 2915470
2009-12-16 Miguel de Dios <miguel.dedios@artica.es>
* include/fgraph.php: fix print image error as tag <image> instead content

View File

@ -276,24 +276,11 @@ foreach ($components as $component) {
$data[6] = '<a style="display: inline; float: left" href="' . $url . '&search_id_group=' . $search_id_group .
'search_string=' . $search_string . '&duplicate_network_component=1&source_id=' . $component['id_nc'] . '">' .
print_input_image ('dup', 'images/copy.png', 1, '', true, array ('title' => __('Duplicate'))) . '</a>';
// $data[6] .= '<form method="post" action="index.php?sec=galertas&sec2=godmode/modules/manage_network_components" style="display: inline; float: left">';
// $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] .= '</form> ';
print_image('images/copy.png', true, array('alt' => __('Duplicate'), 'title' => __('Duplicate'))) . '</a>';
$data[6] .= '<a href="' . $url . '&delete_component=1&id=' . $component['id_nc'] . '&search_id_group=' . $search_id_group .
'search_string=' . $search_string .
'" onclick="if (! confirm (\''.__('Are you sure?').'\')) return false" >' .
print_input_image ('delete', 'images/cross.png', 1, '', true, array ('title' => __('Delete'))) . '</a>';
// $data[6] .= '<form method="post" action="'.$url.'" onsubmit="if (! confirm (\''.__('Are you sure?').'\')) return false">';
// $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] .= '</form>';
print_image('images/cross.png', true, array('alt' => __('Delete'), 'title' => __('Delete'))) . '</a>';
array_push ($table->data, $data);
}