Skip to content

Commit

Permalink
#1107 fix filter spec change
Browse files Browse the repository at this point in the history
  • Loading branch information
sting009 committed Mar 6, 2019
1 parent 61b138e commit f9af367
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,18 @@ export class MapPagePivotComponent extends PagePivotComponent {

let diffDataSourceFl: boolean = false;

// 같은 선반에 동일한 필드가 있을경우
let cnt : number = 0;
currentMapLayer.forEach((item) => {
if ( item.field.dsId == targetField.field.dsId && item.field.name == targetField.field.name ){
cnt++;
}
if( cnt > 1 ){
returnValue = false;
return;
}
});

// prevent other datasource is set on the same shelf
currentMapLayer.forEach((item) => {
if ('user_expr' !== targetField.subType && 'user_expr' !== item.field.type
Expand Down

0 comments on commit f9af367

Please sign in to comment.