Version 5.0.0 beta 11.1
This commit is contained in:
1 parent
264eeb97e0
commit
90e8c7e903
466 files changed
+7796
-2394
No files matched your search
@@ -468,27 +468,16 @@ class category extends Controller
|
||||
{
|
||||
if ( is_array( $v ) and count( $v ) )
|
||||
{
|
||||
$newValue = array();
|
||||
$newDisplayValue = array();
|
||||
$concat = '\n';
|
||||
|
||||
foreach( $v as $member )
|
||||
{
|
||||
if ( $member instanceof Member )
|
||||
{
|
||||
$newDisplayValue[] = $member->name;
|
||||
$newValue[] = $member->member_id;
|
||||
$table->where[] = [ "FIND_IN_SET( " . $member->member_id . ", REPLACE(field_" . $key . ", '\\n',','))" ];
|
||||
}
|
||||
}
|
||||
|
||||
$displayValue = implode( ', ', $newDisplayValue );
|
||||
$v = $newValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* The content_field_x can be an empty array from the member form */
|
||||
continue;
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( is_array( $v ) )
|
||||
|
||||
Reference in new issue
Block a user