Removes pending entreprises from validation if removed in the profile (Closes #1101).
authorStéphane Jacob <sj@m4x.org>
Sat, 26 Jun 2010 16:07:25 +0000 (18:07 +0200)
committerStéphane Jacob <sj@m4x.org>
Sat, 26 Jun 2010 16:07:25 +0000 (18:07 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/profile/jobs.inc.php

index f50e762..cf11aec 100644 (file)
@@ -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);
             }
         }