Ejemplo n.º 1
0
 public function btnSave_Click($strFormId, $strControlId, $strParameter)
 {
     $blnRefreshGroups = !$this->mctGroup->EditMode || $this->mctGroup->Group->ParentGroupId != $this->lstParentGroup->SelectedValue;
     $this->mctGroup->SaveGroup();
     // Delegate "Save" processing to the GroupCategoryMetaControl
     if (!$this->mctGroupCategory->EditMode) {
         $this->mctGroupCategory->GroupCategory->Group = $this->mctGroup->Group;
     }
     // Now we can save the Smart Group
     $this->mctGroupCategory->SaveGroupCategory();
     if ($blnRefreshGroups) {
         Group::RefreshHierarchyDataForMinistry($this->mctGroup->Group->MinistryId);
         $this->objForm->pnlGroups_Refresh();
     }
     $this->ReturnTo('#' . $this->mctGroup->Group->Id);
 }