diff --git a/Extension.php b/Extension.php index e8e1db0..9e43751 100644 --- a/Extension.php +++ b/Extension.php @@ -158,22 +158,9 @@ public function registerNavigation() 'icon' => 'fa-chart-pie', 'title' => lang('lang:thoughtco.reports::default.text_title'), 'priority' => 35, - 'child' => [ - 'dashboard' => [ - 'priority' => 5, - 'class' => 'pages', - 'href' => admin_url('thoughtco/reports/dashboard'), - 'title' => lang('lang:thoughtco.reports::default.text_dashboard_title'), - 'permission' => 'Thoughtco.Reports.View', - ], - 'builder' => [ - 'priority' => 5, - 'class' => 'pages', - 'href' => admin_url('thoughtco/reports/builder'), - 'title' => lang('lang:thoughtco.reports::default.text_builder_title'), - 'permission' => 'Thoughtco.Reports.View', - ], - ], + 'class' => 'pages', + 'href' => admin_url('thoughtco/reports/builder'), + 'permission' => 'Thoughtco.Reports.View', ], ]; } diff --git a/widgets/Lists.php b/widgets/Lists.php index 36b096c..9c456fa 100644 --- a/widgets/Lists.php +++ b/widgets/Lists.php @@ -33,6 +33,7 @@ public function defineProperties() 'default' => 'top_customers', 'type' => 'select', 'options' => $this->getContextOptions(), + 'validationRule' => 'required|alpha_dash', ], ]; }