Version 5.0.0 beta 11.1

This commit is contained in:
Neo committed 2025-12-19 18:00:22 -08:00
1 parent 264eeb97e0
commit 90e8c7e903
466 files changed
+7796 -2394

No files matched your search

@@ -2151,28 +2151,22 @@ class Categories extends Model implements Permissions
{
if ( ! empty( $v ) )
{
$newValue = array();
if ( is_array( $v ) )
{
foreach( $v as $m )
{
$member = Member::load( $m );
$newValue[] = $member->member_id;
$where[] = [ "FIND_IN_SET( " . $member->member_id . ", REPLACE(field_" . $f . ", '\n',','))" ];
}
}
else
{
$member = Member::load( $v );
$newValue[] = $member->member_id;
$where[] = [ "FIND_IN_SET( " . $member->member_id . ", REPLACE(field_" . $f . ", '\n',','))" ];
}
}
$v = $newValue;
}
else
{
/* The content_field_x can be an empty array from the member form */
continue;
}
continue;
}
if ( isset( $customFields[ $f ] ) and $v !== '___any___' )
+3 -3
View File
@@ -3511,7 +3511,7 @@ class Records extends Item implements
* @apiresponse string description Event description
* @apiresponse int comments Number of comments
* @apiresponse int reviews Number of reviews
* @apiresponse int views Number of posts
* @apiresponse int views Number of views
* @apiresponse string prefix The prefix tag, if there is one
* @apiresponse [string] tags The tags
* @apiresponse bool locked Event is locked
@@ -3804,7 +3804,7 @@ class Records extends Item implements
*/
public function getForumId() : int
{
return ( $this->useForumComments() ) ? $this->_forum_forum : 0;
return ( $this->isTopicSyncEnabled() ) ? $this->_forum_forum : 0;
}
/**
@@ -3814,7 +3814,7 @@ class Records extends Item implements
*/
public function isTopicSyncEnabled() : bool
{
return $this->useForumComments();
return $this->_forum_record and $this->_forum_comments and Application::appIsEnabled('forums');
}
/**