protected function validateEditDashboard()
    {
        $submitted = $this->setSubmitted('dashboard');

        foreach ($submitted as &$item) {
            $item['status'] = !empty($item['status']);
            $item['weight'] = intval($item['weight']);
        }

        $this->setSubmitted(null, $submitted);
    }