X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fentreprises.inc.php;h=6becf7a9a0d7f729cf4bd41db95c089aab6c9299;hb=0073747ac81cc9cff9e43847eb008f0e815255f0;hp=6d269d8963b78c3a792879daa5eb9f755620546d;hpb=1dc71da137a384e771723b8a893539a7f5cc9fab;p=platal.git diff --git a/include/validations/entreprises.inc.php b/include/validations/entreprises.inc.php index 6d269d8..6becf7a 100644 --- a/include/validations/entreprises.inc.php +++ b/include/validations/entreprises.inc.php @@ -1,6 +1,6 @@ tel, $error_tel); $display_fax = format_display_number($this->fax, $error_fax); - XDB::execute("INSERT INTO profile_phones (uid, link_type, link_id, tel_id, tel_type, + XDB::execute("INSERT INTO profile_phones (pid, link_type, link_id, tel_id, tel_type, search_tel, display_tel, pub) VALUES ({?}, 'hq', 0, 0, 'fixed', {?}, {?}, 'public'), ({?}, 'hq', 0, 1, 'fax', {?}, {?}, 'public')", @@ -195,8 +195,8 @@ class EntrReq extends Validate } return XDB::execute('UPDATE profile_job SET jobid = {?} - WHERE uid = {?} AND id = {?}', - $jobid, $this->user->id(), $this->id); + WHERE pid = {?} AND id = {?}', + $jobid, $this->user->profile()->id(), $this->id); } // }}}