Merge branch '260221-bg2449-c0profl' into unstable

* 260221-bg2449-c0profl:
  Bug 2449 : cannot remove a profil if a profil for smartphone exists
  set version 10.001
This commit is contained in:
sparkyx 2026-02-21 08:54:25 +01:00
commit eab8de84d8
2 changed files with 4 additions and 2 deletions

View file

@ -25,7 +25,7 @@
global $version_noalyss;
// version
define('NOALYSS_VERSION', 10000 );
define('NOALYSS_VERSION', 10001 );
// Database schema version
define("DBVERSION", 207);

View file

@ -204,7 +204,9 @@ if (isset($_POST['delete_profil']))
{
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));
$cn->commit();
}