- fixed roles options;

This commit is contained in:
nikitasinelnikov
2020-09-11 00:14:20 +03:00
parent d2a73225de
commit ec1db4f5cd
3 changed files with 35 additions and 3 deletions
+5
View File
@@ -3683,6 +3683,11 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$roles = UM()->roles()->get_roles( false, $exclude_roles );
if ( ! empty( $options ) ) {
$roles = array_map( function( $item ) {
return html_entity_decode( $item, ENT_QUOTES );
}, $roles );
//fix when customers change options for role (radio/dropdown) fields
$intersected_options = array();
foreach ( $options as $option ) {