From b94719c167d74b27ca562ccf1adbfab4f7f6ffad Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sat, 26 Jun 2010 18:07:25 +0200 Subject: [PATCH] Removes pending entreprises from validation if removed in the profile (Closes #1101). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/profile/jobs.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/profile/jobs.inc.php b/modules/profile/jobs.inc.php index f50e762..cf11aec 100644 --- a/modules/profile/jobs.inc.php +++ b/modules/profile/jobs.inc.php @@ -199,7 +199,11 @@ class ProfileSettingJob extends ProfileSettingGeocoding $job['name_error'] = true; $success = false; } + if (isset($job['removed']) && $job['removed']) { + if ($job['name'] == '' && $entreprise) { + $entreprise[$entr_val - 1]->clean(); + } array_splice($value, $key, 1); } } -- 2.1.4