Skip to content
Snippets Groups Projects
Commit ecdb69f3 authored by saranya ashokkumar's avatar saranya ashokkumar
Browse files

update state value on listing page

parent 8ba3778a
No related branches found
No related tags found
No related merge requests found
......@@ -34,10 +34,17 @@ class WorkflowNotificationListBuilder extends ConfigEntityListBuilder {
if ($wid <> $entity->getWorkflowId()) {
return $row;
}
$fsid = "Any State";
$tsid = "Any State";
if ($entity->from_sid != "all") {
$fsid = $entity->from_sid;
}
if ($entity->to_sid != "all") {
$tsid = $entity->to_sid;
}
$row['label'] = $entity->label();
$row['from_sid'] = $entity->from_sid;
$row['to_sid'] = $entity->to_sid;
$row['from_sid'] = $fsid;
$row['to_sid'] = $tsid;
$row['when_to_trigger'] = $entity->when_to_trigger;
$row += parent::buildRow($entity);
return $row;
......
......@@ -28,7 +28,7 @@ class WorkflowNotificationForm extends EntityForm {
$role_options = workflow_get_user_role_names('');
unset($role_options['anonymous']);
$state_options = ['' => 'Any State'];
$state_options = ['all' => 'Any State'];
$state_options += workflow_get_workflow_state_names($workflow->id(), FALSE);
$form['label'] = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment