Dashboard - Minor changes (#6993)
This commit is contained in:
@@ -318,19 +318,16 @@
|
||||
}
|
||||
|
||||
//add a default value to $dashboard_details_state
|
||||
if (!isset($row['dashboard_details_state']) && in_array($dashboard_path, ['app/voicemails/resources/dashboard/voicemails.php', 'app/xml_cdr/resources/dashboard/missed_calls.php', 'app/xml_cdr/resources/dashboard/recent_calls.php'])) {
|
||||
$dashboard_details_state = "hidden";
|
||||
}
|
||||
if (!isset($dashboard_details_state)) {
|
||||
$dashboard_details_state = "expanded";
|
||||
}
|
||||
|
||||
//add a default value to $dashboard_chart_type
|
||||
if (!isset($dashboard_chart_type) && $dashboard_path == 'app/voicemails/resources/dashboard/voicemails.php') {
|
||||
$dashboard_chart_type = "none";
|
||||
}
|
||||
if (!isset($dashboard_chart_type) && $dashboard_path == 'app/xml_cdr/resources/dashboard/missed_calls.php') {
|
||||
$dashboard_chart_type = "none";
|
||||
}
|
||||
if (!isset($dashboard_chart_type) && $dashboard_path == 'app/xml_cdr/resources/dashboard/recent_calls.php') {
|
||||
$dashboard_chart_type = "none";
|
||||
if (!isset($dashboard_chart_type) && in_array($dashboard_path, ['app/voicemails/resources/dashboard/voicemails.php', 'app/xml_cdr/resources/dashboard/missed_calls.php', 'app/xml_cdr/resources/dashboard/recent_calls.php'])) {
|
||||
$dashboard_chart_type = "number";
|
||||
}
|
||||
|
||||
//add an empty row
|
||||
@@ -555,11 +552,11 @@
|
||||
else {
|
||||
echo " <option value='doughnut'>".$text['label-doughnut']."</option>\n";
|
||||
}
|
||||
if ($dashboard_chart_type == "none") {
|
||||
echo " <option value='none' selected='selected'>".$text['label-none']."</option>\n";
|
||||
if ($dashboard_chart_type == "number") {
|
||||
echo " <option value='number' selected='selected'>".$text['label-number']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='none'>".$text['label-none']."</option>\n";
|
||||
echo " <option value='number'>".$text['label-number']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo "<br />\n";
|
||||
|
||||
Reference in New Issue
Block a user