From: Stéphane Jacob Date: Fri, 18 Feb 2011 14:38:03 +0000 (+0100) Subject: Primary education should be intialized with the highest id. X-Git-Tag: xorg/1.1.0~1^2~18 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=84db0fdef9ad917fba6bbbcddd1c30ca4870e105;p=platal.git Primary education should be intialized with the highest id. Signed-off-by: Stéphane Jacob --- diff --git a/modules/admin.php b/modules/admin.php index d82b6d5..fdb9597 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -870,9 +870,9 @@ class AdminModule extends PLModule directory_name, short_name, sort_name, promo) VALUES ({?}, {?}, {?}, {?}, {?}, {?}, {?}, {?})', $pid, $infos[1], $fullName, $fullName, $directoryName, $fullName, $directoryName, $promo); - XDB::execute('INSERT INTO profile_education (pid, eduid, degreeid, entry_year, grad_year, flags) - VALUES ({?}, {?}, {?}, {?}, {?}, {?})', - $pid, $eduSchools[Profile::EDU_X], $degreeid, $entry_year, $grad_year, 'primary'); + XDB::execute('INSERT INTO profile_education (id, pid, eduid, degreeid, entry_year, grad_year, flags) + VALUES (100, {?}, {?}, {?}, {?}, {?}, \'primary\')', + $pid, $eduSchools[Profile::EDU_X], $degreeid, $entry_year, $grad_year); XDB::execute('INSERT INTO accounts (hruid, type, is_admin, state, full_name, directory_name, display_name, sex) VALUES ({?}, {?}, {?}, {?}, {?}, {?}, {?}, {?})', $infos['hrid'], $type, 0, 'pending', $fullName, $directoryName, $infos[1], $sex);