Update destination_edit.php

This commit is contained in:
FusionPBX 2016-10-18 09:33:35 -06:00 committed by GitHub
parent 1f5af1df38
commit 4c7bc76790
1 changed files with 7 additions and 7 deletions

View File

@ -379,15 +379,15 @@
$p->add("dialplan_detail_edit", 'temp');
//save the dialplan
$orm = new orm;
$orm->name('dialplans');
$orm->app_name = 'dialplans';
$orm->app_uuid = '5ec89622-b19c-3559-64f0-afde802ab139';
$database = new database;
$database->name('dialplans');
$database->app_name = 'dialplans';
$database->app_uuid = '5ec89622-b19c-3559-64f0-afde802ab139';
if (isset($dialplan["dialplan_uuid"])) {
$orm->uuid($dialplan["dialplan_uuid"]);
$database->uuid($dialplan["dialplan_uuid"]);
}
$orm->save($array);
$dialplan_response = $orm->message;
$database->save($array);
$dialplan_response = $database->message;
//remove the temporary permission
$p->delete("dialplan_add", 'temp');