Skip to content

Commit 93cc76c

Browse files
committed
Fixed sort by ISO 27001:2022
1 parent d594e9e commit 93cc76c

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

src/app/component/mapping/mapping.component.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,12 +471,16 @@ export class MappingComponent implements OnInit {
471471
}
472472
}
473473
for (var i = 0; i < ISO22Array.length; i++) {
474-
this.temporaryMappingElement['ISO22'] = ISO22Array[i];
475-
this.allMappingDataSortedByISO22.push(this.temporaryMappingElement);
474+
const newTempElement = JSON.parse(
475+
JSON.stringify(this.temporaryMappingElement)
476+
);
477+
newTempElement['ISO22'] = ISO22Array[i];
478+
//console.log(newTempElement);
479+
this.allMappingDataSortedByISO22.push(newTempElement);
476480
if (this.YamlObject[dim][subDim][task]['isImplemented']) {
477-
this.performedMappingDataSortedByISO22.push(this.temporaryMappingElement);
481+
this.performedMappingDataSortedByISO22.push(newTempElement);
478482
} else {
479-
this.plannedMappingDataSortedByISO22.push(this.temporaryMappingElement);
483+
this.plannedMappingDataSortedByISO22.push(newTempElement);
480484
}
481485
}
482486
//sorting by descending order

src/assets/YAML/default/Implementation/DevelopmentAndSourceControl.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Implementation:
4747
- 14.2.1
4848
- 14.2.5
4949
iso27001-2022:
50-
- "8.25" # Secure development lifecycle
51-
- "8.27" # Secure system architecture and engineering principles
52-
- "8.28" # Secure coding
50+
- 8.25 # Secure development lifecycle
51+
- 8.27 # Secure system architecture and engineering principles
52+
- 8.28 # Secure coding
5353
isImplemented: false
5454
evidence: ""
5555
comments: ""

0 commit comments

Comments
 (0)