From: Stéphane Jacob Date: Sat, 26 Jun 2010 16:07:25 +0000 (+0200) Subject: Removes pending entreprises from validation if removed in the profile (Closes #1101). X-Git-Tag: xorg/1.0.0~22 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=b94719c167d74b27ca562ccf1adbfab4f7f6ffad;p=platal.git Removes pending entreprises from validation if removed in the profile (Closes #1101). Signed-off-by: Stéphane Jacob --- 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); } }