diff --git a/app/Config/routes.php b/app/Config/routes.php
index 89d5adf..3c64d51 100755
--- a/app/Config/routes.php
+++ b/app/Config/routes.php
@@ -60,6 +60,8 @@
Router::connect('/favorite', array('controller' => 'job', 'action' => 'favorite'));
+ Router::connect('/search', array('controller' => 'search', 'action' => 'listopening'));
+
Router::connect('/test/', array('controller' => 'user', 'action' => 'test'));
Router::parseExtensions('json');
diff --git a/app/View/Elements/user_worker_item.ctp b/app/View/Elements/user_worker_item.ctp
index 8c1e546..10aa334 100644
--- a/app/View/Elements/user_worker_item.ctp
+++ b/app/View/Elements/user_worker_item.ctp
@@ -6,7 +6,7 @@
$DreamjobUser = 'DreamjobUser';
$AppUser = 'AppUser';
$DreamjobListGraducation = 'DreamjobListGraducation';
- if($enableOpening){
+ if(isset($enableOpening) and $enableOpening){
$User = 'WorkerUser';
$DreamjobUser = 'DreamjobUserWorker';
$AppUser = 'AppUserWorker';
@@ -43,14 +43,14 @@
=__('dreamjob.workexperience').': '.$profil['DreamjobWorker']['workexperience'].' ',__('dreamjob.years');?>
-
+
=$this->Time->format('d.m.Y H:i', $profil['DreamjobJobApplication']['created']);?>
$profil['DreamjobJobApplication']['id']);
@@ -70,6 +70,8 @@
}
echo $this->Html->link(__($status),array('controller'=>'job', 'action'=>'applicationByOpening', 'id'=> $profil['DreamjobJobApplication']['opening_id'],'?'=>$archiv),array("class" => "btn btn-default",'escape' => true));
echo $this->Html->link($statusApp,array('controller'=>'job', 'action'=>'applicationGet', 'id'=> $profil['DreamjobJobApplication']['id']),array("class" => "btn btn-default",'escape' => true));
+ }else{
+ echo $this->Html->link(__('dreamjob.details'),array('controller'=>'user', 'action'=>'profil', 'id'=> $profil[$AppUser]['id']),array("class" => "btn btn-default"));
}
?>
diff --git a/update.sql b/update.sql
index 06a966f..e5e6ed0 100644
--- a/update.sql
+++ b/update.sql
@@ -44,7 +44,9 @@ ALTER TABLE `mic_dj_jobs_opening_worker`
-- ACHTUNG:
+update `mic_dj_account_cmpy` left join `mic_dj_list_branch` on `name`=`branch` set `branch`=`mic_dj_list_branch`.`id`;
ALTER TABLE `mic_dj_account_cmpy` CHANGE `branch` `branch_id` INT(11) NOT NULL;
+update `mic_dj_jobs_opening` left join `mic_dj_list_branch` on `name`=`branch` set `branch`=`mic_dj_list_branch`.`id`;
ALTER TABLE `mic_dj_jobs_opening` CHANGE `branch` `branch_id` INT(11) NOT NULL;
-- LOLA
update `mic_dj_account_isearch` left join `mic_dj_list_job` on `name`=`job` set `job`=`mic_dj_list_job`.`id`