From 7c7dcd0af8f39e7f892f6f1f8ccd35138c6b9fa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elis=C3=A9e=20Chemin?= Date: Thu, 3 Oct 2024 14:37:33 +0200 Subject: [PATCH] Fixed an issue where removing a ressource with the same id as the assigned user would remove the user --- htdocs/core/class/html.form.class.php | 6 +++--- htdocs/theme/eldy/global.inc.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 2650e495ab8..1f7078eed6a 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -2568,8 +2568,8 @@ class Form $out .= '
  • '; $resourcestatic->fetch($value['id']); $out .= $resourcestatic->getNomUrl(-1); - if ($nbassignetoresource > 1 && $action != 'view') { - $out .= ' '; + if ($nbassignetoresource >= 1 && $action != 'view') { + $out .= ' '; } // Show my availability if ($showproperties) { @@ -2591,7 +2591,7 @@ class Form // Method with no ajax if ($action != 'view') { - $out .= ''; + $out .= ''; $out .= '