mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
2011-08-09 Vanessa Gil <vanessa.gil@artica.es>
* godmode/groups/group_list.php: Added groups must have a name and be unique. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4690 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
21ac505667
commit
e87b6a7e6c
@ -1,3 +1,7 @@
|
|||||||
|
2011-08-09 Vanessa Gil <vanessa.gil@artica.es>
|
||||||
|
|
||||||
|
* godmode/groups/group_list.php: Added groups must have a name and be unique.
|
||||||
|
|
||||||
2011-08-09 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
2011-08-09 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
* godmode/groups/group_list.php: Added db_clean_cache() in order
|
* godmode/groups/group_list.php: Added db_clean_cache() in order
|
||||||
|
@ -111,28 +111,35 @@ if ($create_group) {
|
|||||||
$alerts_disabled = (bool) get_parameter ('alerts_disabled');
|
$alerts_disabled = (bool) get_parameter ('alerts_disabled');
|
||||||
$custom_id = (string) get_parameter ('custom_id');
|
$custom_id = (string) get_parameter ('custom_id');
|
||||||
$skin = (string) get_parameter ('skin');
|
$skin = (string) get_parameter ('skin');
|
||||||
|
$check = db_get_value('nombre', 'tgrupo', 'nombre', $name);
|
||||||
|
|
||||||
|
|
||||||
/*Check if name field is empty*/
|
/*Check if name field is empty*/
|
||||||
if ($name != "") {
|
if ($name != "") {
|
||||||
$values = array(
|
if (!$check){
|
||||||
'nombre' => $name,
|
$values = array(
|
||||||
'icon' => substr ($icon, 0, -4),
|
'nombre' => $name,
|
||||||
'parent' => $id_parent,
|
'icon' => substr ($icon, 0, -4),
|
||||||
'disabled' => $alerts_disabled,
|
'parent' => $id_parent,
|
||||||
'custom_id' => $custom_id,
|
'disabled' => $alerts_disabled,
|
||||||
'id_skin' => $skin
|
'custom_id' => $custom_id,
|
||||||
);
|
'id_skin' => $skin
|
||||||
|
);
|
||||||
|
|
||||||
$result = db_process_sql_insert('tgrupo', $values);
|
$result = db_process_sql_insert('tgrupo', $values);
|
||||||
}
|
if ($result) {
|
||||||
else {
|
echo "<h3 class='suc'>".__('Group successfully created')."</h3>";
|
||||||
$result = false;
|
} else {
|
||||||
}
|
echo "<h3 class='error'>".__('There was a problem creating group')."</h3>";
|
||||||
|
}
|
||||||
if ($result) {
|
} else {
|
||||||
echo "<h3 class='suc'>".__('Group successfully created')."</h3>";
|
echo "<h3 class='error'>".__('Each group must have a different name')."</h3>";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
echo "<h3 class='error'>".__('There was a problem creating group')."</h3>"; }
|
//$result = false;
|
||||||
|
echo "<h3 class='error'>".__('Group must have a name')."</h3>";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update group */
|
/* Update group */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user