protected function validateEditCategory()
    {
        $this->setSubmitted('category', null, false);
        $this->setSubmitted('form', true);
        $this->setSubmittedBool('status');
        $this->setSubmitted('update', $this->data_category);
        $this->setSubmitted('category_group_id', $this->data_category_group['category_group_id']);

        $this->validateComponent('category');

        return !$this->hasErrors();
    }