From: Stéphane Jacob Date: Sat, 28 Mar 2009 15:26:39 +0000 (+0100) Subject: Fixes some sectors related issues. X-Git-Tag: xorg/1.0.0~332^2~337^2~8 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=2992a284ddad592d4e985004a35a66e45aedfff7;p=platal.git Fixes some sectors related issues. --- diff --git a/htdocs/javascript/profile.js b/htdocs/javascript/profile.js index f578d44..01d0069 100644 --- a/htdocs/javascript/profile.js +++ b/htdocs/javascript/profile.js @@ -47,7 +47,7 @@ function wizPage_onLoad(id) case 'emploi': for (var i = 0 ; $('#job_' + i).length != 0; ++i) { updateJobSector(i, $('#job_' + i).find("[name='jobs[" + i + "][subSector]']").val()); - updateJobSubSector(i, $('#job_' + i).find("[name='jobs[" + i + "][subSubsector]']").val()); + updateJobSubSector(i, $('#job_' + i).find("[name='jobs[" + i + "][subSubSector]']").val()); } break; } @@ -486,7 +486,6 @@ function makeAddJob(id) { $('#add_job').before(data); registerEnterpriseAutocomplete(id); - updateSector('job_' + id, 'jobs[' + id + ']', ''); }; } diff --git a/modules/profile.php b/modules/profile.php index 31677e4..7d57cd8 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -477,7 +477,7 @@ class ProfileModule extends PLModule $page->assign('i', $id); $page->assign('job', array()); $page->assign('new', true); - $res = XDB::query("SELECT id, name + $res = XDB::query("SELECT id, name AS label FROM profile_job_sector_enum"); $page->assign('sectors', $res->fetchAllAssoc()); $res = XDB::query("SELECT id, fonction_fr, FIND_IN_SET('titre', flags) AS title