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") {
//get the generic type
switch ($ent['dialplan_detail_type']) {
case "hour":
$type = 'time';
break;
case "minute":
$type = 'time';
break;
case "minute-of-day":
$type = 'time';
break;
case "mday":
$type = 'time';
break;
case "mweek":
$type = 'time';
break;
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';
case "hour":
case "minute":
case "minute-of-day":
case "time-of-day":
case "mday":
case "mweek":
case "mon":
case "yday":
case "year":
case "wday":
case "week":
$type = 'time';
break;
default:
$type = 'default';
}
//set the attribute and expression