diff --git a/core/dashboard/app_config.php b/core/dashboard/app_config.php index 3c2492e90a..8e8923c7fd 100644 --- a/core/dashboard/app_config.php +++ b/core/dashboard/app_config.php @@ -72,6 +72,11 @@ $apps[$x]['db'][$y]['fields'][$z]['search_by'] = ''; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard path.'; $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_column_span'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric'; + $apps[$x]['db'][$y]['fields'][$z]['search_by'] = ''; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard column span.'; + $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_order'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric'; $apps[$x]['db'][$y]['fields'][$z]['search_by'] = ''; diff --git a/core/dashboard/dashboard_edit.php b/core/dashboard/dashboard_edit.php index 8ddfd2cb73..86e8f41c5a 100644 --- a/core/dashboard/dashboard_edit.php +++ b/core/dashboard/dashboard_edit.php @@ -55,6 +55,7 @@ $dashboard_name = $_POST["dashboard_name"]; $dashboard_path = $_POST["dashboard_path"]; $dashboard_groups = $_POST["dashboard_groups"]; + $dashboard_column_span = $_POST["dashboard_column_span"]; $dashboard_order = $_POST["dashboard_order"]; $dashboard_enabled = $_POST["dashboard_enabled"]; $dashboard_description = $_POST["dashboard_description"]; @@ -151,6 +152,7 @@ $array['dashboard'][0]['dashboard_uuid'] = $dashboard_uuid; $array['dashboard'][0]['dashboard_name'] = $dashboard_name; $array['dashboard'][0]['dashboard_path'] = $dashboard_path; + $array['dashboard'][0]['dashboard_column_span'] = $dashboard_column_span; $array['dashboard'][0]['dashboard_order'] = $dashboard_order; $array['dashboard'][0]['dashboard_enabled'] = $dashboard_enabled; $array['dashboard'][0]['dashboard_description'] = $dashboard_description; @@ -194,6 +196,7 @@ $sql .= " dashboard_uuid, "; $sql .= " dashboard_name, "; $sql .= " dashboard_path, "; + $sql .= " dashboard_column_span, "; $sql .= " dashboard_order, "; $sql .= " cast(dashboard_enabled as text), "; $sql .= " dashboard_description "; @@ -206,6 +209,7 @@ $dashboard_name = $row["dashboard_name"]; $dashboard_path = $row["dashboard_path"]; $dashboard_groups = $row["dashboard_groups"]; + $dashboard_column_span = $row["dashboard_column_span"]; $dashboard_order = $row["dashboard_order"]; $dashboard_enabled = $row["dashboard_enabled"]; $dashboard_description = $row["dashboard_description"]; @@ -374,6 +378,24 @@ echo "\n"; echo "\n"; + echo "