function onSubmit()
 {
     if (!empty($this->data)) {
         $this->save();
     }
     $this->redirect(parent::getSuccessRedirect());
 }