|
|
|
@@ -61,11 +61,20 @@ class TB_Server_Control_Appointment { |
|
|
|
$maxAttendees = ( (int)$params->get( 'maxAttendee') === 0 ) ? NULL : (int)$params->get( 'maxAttendee');
|
|
|
|
|
|
|
|
$comment = _xss( $params->get( 'comment' ) );
|
|
|
|
|
|
|
|
if ( 0 === mb_strlen( $comment ) )
|
|
|
|
{
|
|
|
|
$comment = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Link replacements
|
|
|
|
// if ( 0 === mb_strlen( $comment ) )
|
|
|
|
// {
|
|
|
|
// $comment = NULL;
|
|
|
|
// } else {
|
|
|
|
// $comment = TB_Server_Utils_Helper::makeUrltoLink($comment);
|
|
|
|
// }
|
|
|
|
|
|
|
|
$visibility = $params->get( 'visibility', TB_Shared_Ent_TeamData_Appointment::VISIBLE_ALL );
|
|
|
|
|
|
|
|
if ( $visibility !== TB_Shared_Ent_TeamData_Appointment::VISIBLE_ALL && $visibility !== TB_Shared_Ent_TeamData_Appointment::VISIBLE_CATEGORIES )
|
|
|
|
@@ -399,11 +408,20 @@ class TB_Server_Control_Appointment { |
|
|
|
$maxAttendees = ( (int)$params->get( 'maxAttendee') === 0 ) ? NULL : (int)$params->get( 'maxAttendee');
|
|
|
|
|
|
|
|
$comment = _xss( $params->get( 'comment' ) );
|
|
|
|
|
|
|
|
if ( 0 === mb_strlen( $comment ) )
|
|
|
|
{
|
|
|
|
$comment = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Link replacements
|
|
|
|
// if ( 0 === mb_strlen( $comment ) )
|
|
|
|
// {
|
|
|
|
// $comment = NULL;
|
|
|
|
// } else {
|
|
|
|
// $comment = TB_Server_Utils_Helper::makeUrltoLink($comment);
|
|
|
|
// }
|
|
|
|
|
|
|
|
$visibility = $params->get( 'visibility', TB_Shared_Ent_TeamData_Appointment::VISIBLE_ALL );
|
|
|
|
|
|
|
|
if ( $visibility !== TB_Shared_Ent_TeamData_Appointment::VISIBLE_ALL && $visibility !== TB_Shared_Ent_TeamData_Appointment::VISIBLE_CATEGORIES )
|
|
|
|
|