function saveGroupPanelAction() { @($view_id = DevblocksPlatform::importGPC($_REQUEST['view_id'], 'string', '')); @($group_id = DevblocksPlatform::importGPC($_REQUEST['group_id'], 'integer', 0)); @($name = DevblocksPlatform::importGPC($_REQUEST['name'], 'string', '')); $fields = array(DAO_Group::TEAM_NAME => $name); // [TODO] Delete if (empty($group_id)) { // new $group_id = DAO_Group::create($fields); } else { // update DAO_Group::update($group_id, $fields); } // Reload view (if linked) if (!empty($view_id) && null != ($view = C4_AbstractViewLoader::getView($view_id))) { $view->render(); } exit; }