/**
  * Save a record
  *
  * @param   boolean  $redirect  Redirect after saving?
  * @return  void
  */
 public function saveTask()
 {
     // Check for request forgeries
     Request::checkToken();
     // Load the tag object and bind the incoming data to it
     $model = new OrganizationType($this->database);
     if (!$model->bind($_POST)) {
         App::abort(500, $model->getError());
     }
     // Check content
     if (!$model->check()) {
         $this->setError($model->getError());
         $this->editTask($model);
         return;
     }
     // Store new content
     if (!$model->store()) {
         $this->setError($model->getError());
         $this->editTask($model);
         return;
     }
     \Notify::success(Lang::txt('COM_MEMBERS_ORGTYPE_SAVED'));
     if ($this->_task == 'apply') {
         return $this->editTask($model);
     }
     // Output messsage and redirect
     App::redirect(Route::url('index.php?option=' . $this->_option . '&controller=' . $this->_controller, false));
 }