mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-24 22:35:58 +02:00
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
87cdd10a3f
commit
7cc25d95e3
@ -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>
|
2010-07-21 Raúl Mateos <raulofpandora@gmail.com>
|
||||||
|
|
||||||
* images/pandora_logo_header.png, images/custom_logo/pandora_logo_header.*,
|
* 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)
|
if ($id_group)
|
||||||
$sql .= sprintf ('WHERE id_grupo != %d', $id_group);
|
$sql .= sprintf ('WHERE id_grupo != %d', $id_group);
|
||||||
$groups = get_user_groups();
|
$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">';
|
$table->data[2][1] .= ' <span id="parent_preview">';
|
||||||
if ($id_parent) {
|
if ($id_parent) {
|
||||||
echo '<img src="images/groups_small/'.get_group_icon ($id_parent).'.png" />';
|
echo '<img src="images/groups_small/'.get_group_icon ($id_parent).'.png" />';
|
||||||
|
@ -143,6 +143,10 @@ if ($delete_group) {
|
|||||||
|
|
||||||
if(!$agent){
|
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);
|
$sql = sprintf ('DELETE FROM tgroup_stat WHERE id_group = %d', $id_group);
|
||||||
$result = process_sql ($sql);
|
$result = process_sql ($sql);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user