Implemented fix proposed in Issue 880 to include missing time-of-day case in switch statement within save_dialplan_xml(). Thanks, Seth.

This commit is contained in:
Nate Jones 2015-03-15 01:15:23 +00:00
parent 3dd924775a
commit 74280c78dc
1 changed files with 15 additions and 32 deletions

View File

@ -2381,38 +2381,21 @@ function save_dialplan_xml() {
if ($ent['dialplan_detail_tag'] == "condition") { if ($ent['dialplan_detail_tag'] == "condition") {
//get the generic type //get the generic type
switch ($ent['dialplan_detail_type']) { switch ($ent['dialplan_detail_type']) {
case "hour": case "hour":
$type = 'time'; case "minute":
break; case "minute-of-day":
case "minute": case "time-of-day":
$type = 'time'; case "mday":
break; case "mweek":
case "minute-of-day": case "mon":
$type = 'time'; case "yday":
break; case "year":
case "mday": case "wday":
$type = 'time'; case "week":
break; $type = 'time';
case "mweek": break;
$type = 'time'; default:
break; $type = 'default';
case "mon":
$type = 'time';
break;
case "yday":
$type = 'time';
break;
case "year":
$type = 'time';
break;
case "wday":
$type = 'time';
break;
case "week":
$type = 'time';
break;
default:
$type = 'default';
} }
//set the attribute and expression //set the attribute and expression