From: Stéphane Jacob Date: Sat, 11 Apr 2009 18:30:32 +0000 (+0200) Subject: Adds TODOs. X-Git-Tag: xorg/1.0.0~332^2~313^2~19 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=ecad8a08350703f181e1e11b822d1faf381fb51f;p=platal.git Adds TODOs. --- diff --git a/include/validations/entreprises.inc.php b/include/validations/entreprises.inc.php index bceacbd..6d269d8 100644 --- a/include/validations/entreprises.inc.php +++ b/include/validations/entreprises.inc.php @@ -146,6 +146,8 @@ class EntrReq extends Validate public function commit() { + // TODO: use address and phone classes to update profile_job_enum and profile_phones once they are done. + $res = XDB::query('SELECT id FROM profile_job_enum WHERE name = {?}', diff --git a/modules/admin.php b/modules/admin.php index 5a20feb..e18a409 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -1286,6 +1286,8 @@ class AdminModule extends PLModule } if (Env::has('edit')) { + // TODO: use address and phone classes to update profile_job_enum and profile_phones once they are done. + S::assert_xsrf_token(); $selectedJob = Env::has('selectedJob'); diff --git a/modules/profile/jobs.inc.php b/modules/profile/jobs.inc.php index 1b67ff1..1b7ce83 100644 --- a/modules/profile/jobs.inc.php +++ b/modules/profile/jobs.inc.php @@ -143,6 +143,8 @@ class ProfileJob extends ProfileGeocoding public function save(ProfilePage &$page, $field, $value) { + // TODO: use address and phone classes to update profile_job_enum and profile_phones once they are done. + require_once('profil.func.inc.php'); require_once('validations.inc.php'); diff --git a/upgrade/newdirectory-0.0.1/addresses.php b/upgrade/newdirectory-0.0.1/addresses.php index ea3461d..0b659e6 100755 --- a/upgrade/newdirectory-0.0.1/addresses.php +++ b/upgrade/newdirectory-0.0.1/addresses.php @@ -58,6 +58,8 @@ for ($pid = $minPid; $pid < $maxPid + 1; ++$pid) { $address = $gmapsGeocoder->getGeocodedAddress($address); if (!isset($address['geoloc'])) { + // TODO: use address and phone classes to update profile_job_enum and profile_phones once they are done. + XDB::execute('DELETE FROM profile_addresses WHERE pid = {?} AND id = {?} AND type = {?}', $address['pid'], $address['id'], $address['type']);