Skip to content

Commit 248e940

Browse files
atarix83Andrea Barbasso
authored andcommitted
Merged in task/dspace-cris-2023_02_x/DSC-1944 (pull request DSpace#2316)
Fix issue with wrong parameter when using the bulk import Approved-by: Andrea Barbasso
2 parents f3c3b8f + a29186d commit 248e940

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/app/bulk-import/bulk-import-page.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h2 class="mb-3">{{ 'bulk-import.title' | translate }}</h2>
1313
<input type="checkbox" formControlName="abortOnError" id="abortOnError" class="form-check-input" />
1414
<label for="abortOnError" class="mr-5">{{ 'bulk-import.abort-on-error' | translate }}</label>
1515
</div>
16-
16+
1717
<button type="submit" class="btn btn-primary float-right" [disabled]="form.invalid || (isProcessingImport() | async)" >
1818
<span *ngIf="(isProcessingImport() | async)">
1919
<i class='fas fa-circle-notch fa-spin'></i> {{'bulk-import.processing' | translate}}
@@ -22,9 +22,9 @@ <h2 class="mb-3">{{ 'bulk-import.title' | translate }}</h2>
2222
{{'bulk-import.submit' | translate}}
2323
</span>
2424
</button>
25-
<button class="btn btn-secondary float-right mr-2" (click)="goBack()">
25+
<button class="btn btn-outline-secondary float-right mr-2" (click)="goBack()">
2626
{{'bulk-import.back' | translate}}
2727
</button>
2828

2929
</form>
30-
</div>
30+
</div>

src/app/bulk-import/bulk-import-page.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ describe('BulkImportPageComponent', () => {
115115
expect(scriptDataService.invoke).toHaveBeenCalledWith('bulk-import', [
116116
{ name: '-c', value: '626b80c5-ef15-4b29-8e69-bda89b0a7acf' },
117117
{ name: '-f', value: 'test.xls' },
118-
{ name: '-e', value: true }
118+
{ name: '-er', value: true }
119119
], [file]);
120120
});
121121

src/app/bulk-import/bulk-import-page.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class BulkImportPageComponent implements OnInit, OnDestroy {
9292
];
9393

9494
if (values.abortOnError) {
95-
stringParameters.push( { name: '-e', value: values.abortOnError } );
95+
stringParameters.push( { name: '-er', value: values.abortOnError } );
9696
}
9797

9898
this.scriptService.invoke('bulk-import', stringParameters, [file])

0 commit comments

Comments
 (0)