- fixed member directory sorting by the full name;

- fixed registration form with not editable role field;
This commit is contained in:
nikitasinelnikov
2020-10-14 11:42:59 +03:00
parent f9893236e6
commit 255acd7c0a
2 changed files with 22 additions and 21 deletions
+2 -1
View File
@@ -612,7 +612,8 @@ if ( ! class_exists( 'um\core\Form' ) ) {
if ( strstr( $field_key, 'role_' ) && is_array( $field_settings['options'] ) ) {
if ( $field_settings['editable'] == 0 ) {
if ( isset( $this->post_form['mode'] ) && $this->post_form['mode'] == 'profile' &&
isset( $field_settings['editable'] ) && $field_settings['editable'] == 0 ) {
continue;
}