From 0bde5aff555e78a9486a64144be7e2a122484a0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Tue, 6 May 2014 17:59:42 +0200 Subject: [PATCH] #258: link-website auf firmenseite geht nicht --- app/Controller/RegistrationController.php | 4 +++- app/Controller/UserController.php | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Controller/RegistrationController.php b/app/Controller/RegistrationController.php index 64ce0df..7aee68c 100644 --- a/app/Controller/RegistrationController.php +++ b/app/Controller/RegistrationController.php @@ -66,7 +66,9 @@ class RegistrationController extends AppController { }else{ $this->MiconwareSession->setFlash(__('dreamjob.agb.error.notAccept'),'flash',array('alert'=>'danger')); } - } + }else + if(empty($this->request->data['DreamjobCompany']['website'])) + $this->request->data['DreamjobCompany']['website'] ='http://'; $this->set('result',$regResult); $this->set('cities',$this->DreamjobListCity->find('list')); $this->set('branches',$this->DreamjobListBranch->find('list')); diff --git a/app/Controller/UserController.php b/app/Controller/UserController.php index 7324ac7..e3ff1c1 100755 --- a/app/Controller/UserController.php +++ b/app/Controller/UserController.php @@ -295,6 +295,8 @@ class UserController extends AppController { } } + if(empty($profil['DreamjobCompany']['website'])) + $profil['DreamjobCompany']['website'] = 'http://'; $this->request->data = $profil; $this->set('profil',$profil); $this->set('graducations',$this->DreamjobListGraducation->find('list'));