Commit 0a6eba0d authored by Raph El's avatar Raph El

Hotfix survey stepvalidation missing $el->costum

parent 1865e6b6
......@@ -96,13 +96,15 @@ if( $mode != "pdf" ){
// var_dump($this->costum[$el['costum']['slug']]["hasRoles"][0]);
// var_dump($paramsData['canValidRoles']);
if( (!isset($answer["validation"][$form['id']]) || (isset( $answer["validation"][ $form['id'] ]["valid"] ) && $answer["validation"][ $form['id'] ]["valid"] == "notValid")) &&
//isset( $answ) &&
if( ( !isset($answer["validation"][$form['id']]) ||
( isset( $answer["validation"][ $form['id'] ]["valid"] ) && $answer["validation"][ $form['id'] ]["valid"] == "notValid") ) &&
isset($el['costum']) && isset($el['costum']['slug']) &&
isset( $this->costum[$el['costum']['slug']]["hasRoles"][0]) &&
in_array($this->costum[$el['costum']['slug']]["hasRoles"][0], $paramsData['canRequestRoles']) )
echo '<a href="javascript:;" data-type="'.$form['id'].'" class="requestValid btn btn-primary">Étape terminé , Demander la Validation</a>';
else if( isset( $answer["validation"][ $form['id'] ]["valid"] ) &&
$answer["validation"][ $form['id'] ]["valid"] == "request" &&
isset($el['costum']) && isset($el['costum']['slug']) &&
isset( $this->costum[$el['costum']['slug']]["hasRoles"][0] ) &&
in_array($this->costum[$el['costum']['slug']]["hasRoles"][0], $paramsData['canValidRoles']) )
echo '<a href="javascript:;" data-type="'.$form['id'].'" class="validEdit btn btn-primary">Valider cette Étape</a>';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment