issue #0001350 : Init doublon
This commit is contained in:
parent
96ba8525d6
commit
d2b17e2ff7
@ -36,7 +36,8 @@ class ProfilController extends Zend_Controller_Action
|
||||
public function createAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$id = $request->getParam('id', null);
|
||||
$id = $request->getParam('id', null);
|
||||
$doublon = array();
|
||||
|
||||
require_once 'Scores/Enrichissement.php';
|
||||
$data = new Enrichissement();
|
||||
@ -45,11 +46,9 @@ class ProfilController extends Zend_Controller_Action
|
||||
$profilM = new Application_Model_Profil();
|
||||
$profil = $profilM->find($id);
|
||||
$criteres = json_decode($profil->current()->criteres, true);
|
||||
$doublon = array();
|
||||
if( $profil->current()->doublon!='' ) {
|
||||
$doublon = json_decode($profil->current()->doublon, true);
|
||||
}
|
||||
$this->view->assign('doublon', $doublon);
|
||||
}
|
||||
$tmp = array();
|
||||
foreach ($criteres as $critere) {
|
||||
$values = false;
|
||||
@ -74,6 +73,7 @@ class ProfilController extends Zend_Controller_Action
|
||||
$this->view->assign('criteres', $tmp);
|
||||
$this->view->assign('reference', $profil->current()->reference);
|
||||
}
|
||||
$this->view->assign('doublon', $doublon);
|
||||
$this->view->assign('id', $id);
|
||||
$this->view->assign('edit', true);
|
||||
$this->view->assign('elements', $data->getDico());
|
||||
|
Loading…
Reference in New Issue
Block a user