...
 
Commits (2)
......@@ -97,6 +97,7 @@ if( $mode != "pdf" ){
// var_dump($paramsData['canValidRoles']);
if( (!isset($answer["validation"][$form['id']]) || (isset( $answer["validation"][ $form['id'] ]["valid"] ) && $answer["validation"][ $form['id'] ]["valid"] == "notValid")) &&
//isset( $answ) &&
isset( Yii::app()->session["costum"][$el['costum']['slug']]["hasRoles"][0]) &&
in_array(Yii::app()->session["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>';
......@@ -119,6 +120,8 @@ if( $mode != "pdf" ){
</tbody>
</table>
<?php
......
......@@ -61,7 +61,8 @@ if( isset($parentForm["subForms"]) && count($parentForm["subForms"]) > 1 ) {
// if(isset($parentForm["hasStepValidations"]) )
// $lbl = "";
$forms[$v]['open'] = false;
if( (!isset($answer["step"]) && !isset($parentForm["hasStepValidations"])) ||
if( $mode == "fa" ||
(!isset($answer["step"]) && !isset($parentForm["hasStepValidations"])) ||
$k == 0 ||
(isset($answer["step"]) && $answer["step"] == "all" ) ||
......