|
|
|
@@ -639,11 +639,20 @@ class TB_Server_Control_Team { |
|
|
|
$category = $params->get( 'industry', $team->category );
|
|
|
|
$team->display_name = _xss( $displayName );
|
|
|
|
$team->category = _xss( $category );
|
|
|
|
$team->description = _xss( $params->get( 'description' ) );
|
|
|
|
$team->terms_conditions = _xss( $params->get( 'termsConditions' ) );
|
|
|
|
|
|
|
|
$description = _xss($params->get('description'));
|
|
|
|
$toc = _xss( $params->get('termsConditions'));
|
|
|
|
$contactInformation = _xss($params->get( 'contactInformation'));
|
|
|
|
|
|
|
|
$description = ($description === '') ? null : TB_Server_Utils_Helper::makeUrltoLink($description);
|
|
|
|
$toc = ($toc === '') ? null : TB_Server_Utils_Helper::makeUrltoLink($toc);
|
|
|
|
$contactInformation = ($contactInformation === '') ? null : TB_Server_Utils_Helper::makeUrltoLink($contactInformation);
|
|
|
|
|
|
|
|
$team->description = $description;
|
|
|
|
$team->terms_conditions = $toc;
|
|
|
|
$team->terms_conditions_active = $params->get( 'termsConditionsActive' ) === true ? 1 : 0;
|
|
|
|
$team->new_users_active = $params->get( 'newUsersActive' ) === true ? 1 : 0;
|
|
|
|
$team->contact_information = _xss( $params->get( 'contactInformation' ) );
|
|
|
|
$team->new_users_inactive = $params->get( 'newUsersInactive' ) === true ? 1 : 0;
|
|
|
|
$team->contact_information = $contactInformation;
|
|
|
|
$team->save();
|
|
|
|
|
|
|
|
return $resp;
|
|
|
|
|