changed en_ettente behaviour

This commit is contained in:
2017-03-03 17:58:05 +01:00
parent a66a41e2cd
commit 530ac38275
12 changed files with 324 additions and 179 deletions
@@ -31,4 +31,12 @@ if($node->workflow == 3){
$vars["classes_array"][] = 'en_attente';
}
$scheduled_transitions = WorkflowScheduledTransition::load('node', $node->nid, NULL, 1);
$transition = false;
if(count($scheduled_transitions)){
// dsm($scheduled_transitions, "scheduled_transitions");
$transition = $scheduled_transitions[0];
}
$vars['wf_stamp'] = $transition ? $transition->scheduled : false;
$vars["classes_array"][] = "node-".$node->nid;