From: Stéphane Jacob Date: Fri, 10 Sep 2010 09:27:44 +0000 (+0200) Subject: Prevents error display on new empty job. X-Git-Tag: xorg/1.0.1~214 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d1d01361e8fc915f4fca4d88afb858e816c89d4b;p=platal.git Prevents error display on new empty job. Signed-off-by: Stéphane Jacob --- diff --git a/modules/profile/jobs.inc.php b/modules/profile/jobs.inc.php index f173b41..54e00d1 100644 --- a/modules/profile/jobs.inc.php +++ b/modules/profile/jobs.inc.php @@ -220,8 +220,10 @@ class ProfileSettingJob extends ProfileSettingGeocoding continue; } - $job['name_error'] = true; - $success = false; + if (!$init) { + $job['name_error'] = true; + $success = false; + } } if (isset($job['removed']) && $job['removed']) { diff --git a/templates/profile/jobs.job.tpl b/templates/profile/jobs.job.tpl index 97220a7..08570ce 100644 --- a/templates/profile/jobs.job.tpl +++ b/templates/profile/jobs.job.tpl @@ -50,7 +50,7 @@ Entreprise n°{$i+1} : {if $job.tmp_name}{$job.tmp_name} (en cours de validation){else} - {/if}