Call Flows - List: Fix Status toggle.

This commit is contained in:
Nate
2020-04-15 15:07:52 -06:00
parent 86bba631c1
commit c4f410aff0
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -245,7 +245,7 @@
}
if (permission_exists('call_flow_edit')) {
echo " <td class='no-link center'>";
echo button::create(['type'=>'submit','class'=>'link','label'=>$text['label-'.($row['call_flow_enabled'] == "true" ? 'true' : 'false')],'title'=>$text['button-toggle'],'onclick'=>"list_self_check('checkbox_".$x."'); list_action_set('toggle'); document.getElementById('toggle_field').value = 'call_flow_enabled';list_form_submit('form_list')"]);
echo button::create(['type'=>'submit','class'=>'link','label'=>$text['label-'.($row['call_flow_enabled'] == "true" ? 'true' : 'false')],'title'=>$text['button-toggle'],'onclick'=>"list_self_check('checkbox_".$x."'); list_action_set('toggle'); document.getElementById('toggle_field').value = 'call_flow_enabled'; list_form_submit('form_list')"]);
}
else {
echo " <td class='center'>";