From 2cccf833c32a79e929783cb79fd1febfc66749c9 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 29 Sep 2016 14:43:21 -0600 Subject: [PATCH] Update ivr_menu.php --- app/ivr_menus/resources/classes/ivr_menu.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/ivr_menus/resources/classes/ivr_menu.php b/app/ivr_menus/resources/classes/ivr_menu.php index 6041a2d9af..fc18f876c1 100644 --- a/app/ivr_menus/resources/classes/ivr_menu.php +++ b/app/ivr_menus/resources/classes/ivr_menu.php @@ -170,14 +170,17 @@ include "root.php"; //add or update the dialplan $this->dialplan($array); $array['dialplan_uuid'] = $this->dialplan_uuid; + $data['ivr_menus'][] = $array; //save the ivr_menus $orm = new orm; $orm->name('ivr_menus'); + $orm->app_name = 'ivr_menus'; + $orm->app_uuid = $this->app_uuid; if (strlen($this->ivr_menu_uuid) > 0) { $orm->uuid($this->ivr_menu_uuid); } - $orm->save($array); + $result = $orm->save($data); $this->ivr_menu_uuid = $orm->message['uuid']; //update dialplan with the ivr_menu_uuid @@ -460,6 +463,8 @@ include "root.php"; //save the dialplan $orm = new orm; $orm->name('dialplans'); + $orm->app_name = 'ivr_menus'; + $orm->app_uuid = $this->app_uuid; $orm->save($array); $response = $orm->message; if (strlen($response['uuid']) > 0) {