Update call_flow_edit.php
This commit is contained in:
parent
fbe490dfd4
commit
c06c5fa5a8
|
|
@ -188,6 +188,11 @@
|
||||||
$array['call_flows'][] = $_POST;
|
$array['call_flows'][] = $_POST;
|
||||||
$array['dialplans'][] = $dialplan;
|
$array['dialplans'][] = $dialplan;
|
||||||
|
|
||||||
|
//add the dialplan permission
|
||||||
|
$p = new permissions;
|
||||||
|
$p->add("dialplan_add", "temp");
|
||||||
|
$p->add("dialplan_edit", "temp");
|
||||||
|
|
||||||
//save to the data
|
//save to the data
|
||||||
$orm = new orm;
|
$orm = new orm;
|
||||||
//$orm->name('call_flows');
|
//$orm->name('call_flows');
|
||||||
|
|
@ -199,6 +204,10 @@
|
||||||
$orm->save($array);
|
$orm->save($array);
|
||||||
$message = $orm->message;
|
$message = $orm->message;
|
||||||
|
|
||||||
|
//remove the temporary permission
|
||||||
|
$p->delete("dialplan_add", "temp");
|
||||||
|
$p->delete("dialplan_edit", "temp");
|
||||||
|
|
||||||
//debug info
|
//debug info
|
||||||
//echo "<pre>";
|
//echo "<pre>";
|
||||||
//print_r($message);
|
//print_r($message);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue