From: Stéphane Jacob Date: Sun, 12 Dec 2010 16:16:24 +0000 (+0100) Subject: Fixes education and job inclusions. X-Git-Tag: xorg/1.0.2~80 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=247b772835778d8d1d0a8b3a1e278d89bb7ba70c;p=platal.git Fixes education and job inclusions. Signed-off-by: Stéphane Jacob --- diff --git a/upgrade/1.0.1/merge.php b/upgrade/1.0.1/merge.php index ce776b4..6d0f1e9 100755 --- a/upgrade/1.0.1/merge.php +++ b/upgrade/1.0.1/merge.php @@ -78,6 +78,7 @@ while ($continue > 0) { INNER JOIN profile_job AS pj ON (f.pid = pj.pid AND pj.id = $id AND pj.description = f.description) WHERE pj.jobid = f.jobid OR (pj.jobid IS NULL AND f.jobid IS NULL)"); $continue = XDB::affectedRows(); + ++$id; } XDB::rawExecute('DROP TABLE IF EXISTS fusionax_activites'); // We also have to add related phones and addresses. @@ -307,6 +308,7 @@ while ($continue > 0) { INNER JOIN profile_education AS pe ON (pe.pid = f.pid AND pe.id = $id AND pe.eduid = f.eduid AND pe.degreeid = f.degreeid AND pe.fieldid = f.fieldid AND pe.program = f.Descr_formation)"); $continue = XDB::affectedRows(); + ++$id; } // Updates merge_issues table (eduid and degreeid should never be empty). XDB::rawExecute("UPDATE profile_merge_issues AS pm