Call Flows - List: Fix Status toggle.
This commit is contained in:
parent
86bba631c1
commit
c4f410aff0
|
|
@ -217,8 +217,10 @@ if (!class_exists('call_flows')) {
|
|||
foreach($call_flows as $uuid => $call_flow) {
|
||||
$array[$this->table][$x][$this->uuid_prefix.'uuid'] = $uuid;
|
||||
$array[$this->table][$x][$this->toggle_field] = $call_flow['state'] == $this->toggle_values[0] ? $this->toggle_values[1] : $this->toggle_values[0];
|
||||
if ($this->toggle_field == 'call_flow_enabled') {
|
||||
$array['dialplans'][$x]['dialplan_uuid'] = $call_flow['dialplan_uuid'];
|
||||
$array['dialplans'][$x]['dialplan_enabled'] = $call_flow['state'] == $this->toggle_values[0] ? $this->toggle_values[1] : $this->toggle_values[0];
|
||||
}
|
||||
$x++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue