소스 검색

HUE-3967 [core] There are missing properties when opening existing group overrides

Johan Ahlen 9 년 전
부모
커밋
765701f812
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      apps/useradmin/src/useradmin/templates/list_configurations.mako

+ 2 - 2
apps/useradmin/src/useradmin/templates/list_configurations.mako

@@ -250,11 +250,11 @@ ${ configKoComponents.config() }
           app.groups.forEach(function (group) {
             var groupPropertyIndex = {};
             group.properties.forEach(function (groupProperty) {
-              groupPropertyIndex[groupProperty.name] = groupProperty;
+              groupPropertyIndex[groupProperty.name || groupProperty.nice_name] = groupProperty;
             })
             // Merge the base properties into any existing group config
             app.properties.forEach(function (property) {
-              if (!groupPropertyIndex[property.name]){
+              if (!groupPropertyIndex[property.name || property.nice_name]){
                 group.properties.push(property);
               }
             });