favoriten
This commit is contained in:
parent
562b2db078
commit
f2743d3e9e
|
@ -50,7 +50,7 @@ class JobController extends AppController {
|
||||||
if($val['id'] == $this->request->params['id'])
|
if($val['id'] == $this->request->params['id'])
|
||||||
$fav=true;
|
$fav=true;
|
||||||
}
|
}
|
||||||
$data = array('DreamjobJobFavority' => array('opening_id' => $this->request->params['id'], 'worker_id' => $WORKER['AppUser']['id']));
|
$data = array('DreamjobJobFavority' => array('opening_id' => $this->request->params['id'], 'worker_id' => $WORKER['AppUser']['id']),'modified' => false);
|
||||||
$data2 = array('DreamjobJobFavority.opening_id' => $this->request->params['id'], 'DreamjobJobFavority.worker_id' => $WORKER['AppUser']['id']);
|
$data2 = array('DreamjobJobFavority.opening_id' => $this->request->params['id'], 'DreamjobJobFavority.worker_id' => $WORKER['AppUser']['id']);
|
||||||
if($fav){
|
if($fav){
|
||||||
$this->MiconwareSession->setFlash('dreamjob.opening.fav.delete','flash',array('alert'=>'success'));
|
$this->MiconwareSession->setFlash('dreamjob.opening.fav.delete','flash',array('alert'=>'success'));
|
||||||
|
|
|
@ -22,6 +22,14 @@ class DreamjobJobFavority extends AppModel {
|
||||||
//'last' => false, // Stop validation after this rule
|
//'last' => false, // Stop validation after this rule
|
||||||
//'on' => 'create', // Limit validation to 'create' or 'update' operations
|
//'on' => 'create', // Limit validation to 'create' or 'update' operations
|
||||||
),
|
),
|
||||||
|
'multiple' => array(
|
||||||
|
'rule' => array('multiple'),
|
||||||
|
//'message' => 'Your custom message here',
|
||||||
|
//'allowEmpty' => false,
|
||||||
|
//'required' => false,
|
||||||
|
//'last' => false, // Stop validation after this rule
|
||||||
|
//'on' => 'create', // Limit validation to 'create' or 'update' operations
|
||||||
|
),
|
||||||
),
|
),
|
||||||
'opening_id' => array(
|
'opening_id' => array(
|
||||||
'numeric' => array(
|
'numeric' => array(
|
||||||
|
@ -32,6 +40,14 @@ class DreamjobJobFavority extends AppModel {
|
||||||
//'last' => false, // Stop validation after this rule
|
//'last' => false, // Stop validation after this rule
|
||||||
//'on' => 'create', // Limit validation to 'create' or 'update' operations
|
//'on' => 'create', // Limit validation to 'create' or 'update' operations
|
||||||
),
|
),
|
||||||
|
'multiple' => array(
|
||||||
|
'rule' => array('multiple'),
|
||||||
|
//'message' => 'Your custom message here',
|
||||||
|
//'allowEmpty' => false,
|
||||||
|
//'required' => false,
|
||||||
|
//'last' => false, // Stop validation after this rule
|
||||||
|
//'on' => 'create', // Limit validation to 'create' or 'update' operations
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue