File tree 2 files changed +4
-3
lines changed
admin-ui/plugins/user-management/components/UserManagement
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,10 @@ function UserEditPage() {
93
93
jansStatus : userDetails . jansStatus || '' ,
94
94
}
95
95
for ( let i in userDetails . customAttributes ) {
96
- if ( userDetails . customAttributes [ i ] . multiValued ) {
96
+ let customAttribute = personAttributes . filter (
97
+ ( e ) => e . name == userDetails . customAttributes [ i ] . name ,
98
+ )
99
+ if ( customAttribute [ 0 ] . oxMultiValuedAttribute ) {
97
100
initialValues [ userDetails . customAttributes [ i ] . name ] =
98
101
userDetails . customAttributes [ i ] . values
99
102
} else {
Original file line number Diff line number Diff line change @@ -86,10 +86,8 @@ function UserForm({ formik }) {
86
86
const setAttributes = ( ) => {
87
87
let tempList = [ ...selectedClaims ]
88
88
for ( let i in userDetails . customAttributes ) {
89
- console . log ( 'This is it' , userDetails . customAttributes [ i ] )
90
89
let data = getCustomAttributeById ( userDetails . customAttributes [ i ] . name )
91
90
if ( data && ! usedClaimes . includes ( userDetails . customAttributes [ i ] . name ) ) {
92
- console . log ( 'JMS' , data )
93
91
data . options = userDetails . customAttributes [ i ] . values
94
92
tempList . push ( data )
95
93
}
You can’t perform that action at this time.
0 commit comments