protected function OnSuccess()
    {
        $action = $this->group->Exists() ? Action::Update() : Action::Create();
        $this->group->SetName($this->Value('Name'));
        $this->group->SetCreateContainers((bool)$this->Value('CreateContainers'));
        $this->group->SetCreateLayouts((bool)$this->Value('CreateLayouts'));
        $this->group->SetCreateContainers((bool)$this->Value('CreateContainers'));
        $this->group->Save();
        $logger = new Logger(self::Guard()->GetUser());
        $logger->ReportUserGroupAction($this->group, $action);
        $target = BackendRouter::ModuleUrl(new UsergroupList());
        Response::Redirect($target);
    }
protected function OnSuccess()
    {
        $action = $this->group->Exists() ? Action::Update() : Action::Create();
        $this->group->SetName($this->Value('Name'));
        $this->group->SetCreateContainers((bool)$this->Value('CreateContainers'));
        $this->group->SetCreateLayouts((bool)$this->Value('CreateLayouts'));
        $this->group->SetCreateContainers((bool)$this->Value('CreateContainers'));
        $this->group->Save();
        $logger = new Logger(self::Guard()->GetUser());
        $logger->ReportUserGroupAction($this->group, $action);
        $target = BackendRouter::ModuleUrl(new UsergroupList());
        Response::Redirect($target);
    }
protected function OnSuccess ( ) { $ action = $ this -> group -> Exists ( ) ? Action :: Update ( ) : Action :: Create ( ) ; $ this -> group -> SetName ( $ this -> Value ( 'Name' ) ) ; $ this -> group -> SetCreateContainers ( ( bool ) $ this -> Value ( 'CreateContainers' ) ) ; $ this -> group -> SetCreateLayouts ( ( bool ) $ this -> Value ( 'CreateLayouts' ) ) ; $ this -> group -> SetCreateContainers ( ( bool ) $ this -> Value ( 'CreateContainers' ) ) ; $ this -> group -> Save ( ) ; $ logger = new Logger ( self :: Guard ( ) -> GetUser ( ) ) ; $ logger -> ReportUserGroupAction ( $ this -> group , $ action ) ; $ target = BackendRouter :: ModuleUrl ( new UsergroupList ( ) ) ; Response :: Redirect ( $ target ) ; }
Saves the group and redirects to the list
Saves the group and redirects to the list