From d2cbead2039465f53348631e5d2880bd6bef8cd5 Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 25 Feb 2022 09:17:18 +0100 Subject: [PATCH 1/3] Add an ID into formproject method to be able to target --- htdocs/core/class/html.form.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 6e5c0a572d2..7bc80ae6107 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5199,13 +5199,17 @@ class Form $out .= ''; $out .= ''; } else { + $out .= ''; if ($selected) { $projet = new Project($this->db); $projet->fetch($selected); - $out .= $projet->getNomUrl(1, '', 1); + + $out .= $projet->getNomUrl(1, '', 1); + } else { $out .= " "; } + $out .= ''; } if (empty($nooutput)) { From aabfdfa21239789d52df9a0c9630704566ed14d7 Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 25 Feb 2022 09:20:36 +0100 Subject: [PATCH 2/3] Format code --- htdocs/core/class/html.form.class.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 7bc80ae6107..2d5146ced91 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5203,9 +5203,7 @@ class Form if ($selected) { $projet = new Project($this->db); $projet->fetch($selected); - $out .= $projet->getNomUrl(1, '', 1); - } else { $out .= " "; } From ad5a18996d0b8d25cb0d0f6b792a8a02fb6b5ba5 Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 2 Mar 2022 21:00:07 +0100 Subject: [PATCH 3/3] Replace id by class --- htdocs/core/class/html.form.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 2d5146ced91..da773bc3775 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5199,7 +5199,7 @@ class Form $out .= ''; $out .= ''; } else { - $out .= ''; + $out .= ''; if ($selected) { $projet = new Project($this->db); $projet->fetch($selected);