Bug 2449 : cannot remove a profil if a profil for smartphone exists
This commit is contained in:
parent
b4f226ab9c
commit
607ab626c5
1 changed files with 3 additions and 1 deletions
|
|
@ -204,7 +204,9 @@ if (isset($_POST['delete_profil']))
|
||||||
{
|
{
|
||||||
throw new Exception('On ne peut pas effacer le profil par défaut');
|
throw new Exception('On ne peut pas effacer le profil par défaut');
|
||||||
}
|
}
|
||||||
$new_id=$cn->get_value("delete from profile
|
$cn->exec_sql("delete from profile_mobile
|
||||||
|
where p_id=$1 ", array($p_id));
|
||||||
|
$cn->exec_sql("delete from profile
|
||||||
where p_id=$1 ", array($p_id));
|
where p_id=$1 ", array($p_id));
|
||||||
$cn->commit();
|
$cn->commit();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue