2010-07-21 Miguel de Dios <miguel.dedios@artica.es>
* godmode/groups/configure_group.php: fixed to negate the posibility to hang the father into childrens or same. Fixes: #3032553 * godmode/groups/group_list.php: fixed the delete a group with children, the children move to grandparent. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3050 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
7a2246a54f
commit
e8c76f4e6c
|
@ -1,3 +1,12 @@
|
|||
2010-07-21 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/groups/configure_group.php: fixed to negate the posibility to hang
|
||||
the father into childrens or same.
|
||||
Fixes: #3032553
|
||||
|
||||
* godmode/groups/group_list.php: fixed the delete a group with children, the
|
||||
children move to grandparent.
|
||||
|
||||
2010-07-21 Raúl Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* images/pandora_logo_header.png, images/custom_logo/pandora_logo_header.*,
|
||||
|
|
|
@ -78,7 +78,13 @@ $sql = 'SELECT id_grupo, nombre FROM tgrupo ';
|
|||
if ($id_group)
|
||||
$sql .= sprintf ('WHERE id_grupo != %d', $id_group);
|
||||
$groups = get_user_groups();
|
||||
$table->data[2][1] = print_select_groups(false, "AR", true, 'id_parent', 0, '', '', '', true);
|
||||
if ($id_group) {
|
||||
$table->data[2][1] = print_select_groups(false, "AR", true, 'id_parent', 0,
|
||||
'', '', '', true, false, true, '', false, false, false, $id_group);
|
||||
}
|
||||
else {
|
||||
$table->data[2][1] = print_select_groups(false, "AR", true, 'id_parent', 0, '', '', '', true);
|
||||
}
|
||||
$table->data[2][1] .= ' <span id="parent_preview">';
|
||||
if ($id_parent) {
|
||||
echo '<img src="images/groups_small/'.get_group_icon ($id_parent).'.png" />';
|
||||
|
|
|
@ -142,6 +142,10 @@ if ($delete_group) {
|
|||
$agent = process_sql ($sql);
|
||||
|
||||
if(!$agent){
|
||||
|
||||
$group = get_db_row_filter('tgrupo', array('id_grupo' => $id_group));
|
||||
|
||||
process_sql_update('tgrupo', array('parent' => $group['parent']), array('parent' => $id_group));
|
||||
|
||||
$sql = sprintf ('DELETE FROM tgroup_stat WHERE id_group = %d', $id_group);
|
||||
$result = process_sql ($sql);
|
||||
|
|
Loading…
Reference in New Issue