mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
115046: Fixed url parameters not being filtered out of the url before hasChanges$ & isReinstatable$ is calculated
This commit is contained in:
@@ -85,12 +85,9 @@ export class AbstractItemUpdateComponent extends AbstractTrackableComponent impl
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.discardTimeOut = environment.item.edit.undoTimeout;
|
this.discardTimeOut = environment.item.edit.undoTimeout;
|
||||||
this.url = this.router.url;
|
this.url = this.router.url.split('?')[0];
|
||||||
this.hasChanges$ = this.hasChanges();
|
this.hasChanges$ = this.hasChanges();
|
||||||
this.isReinstatable$ = this.isReinstatable();
|
this.isReinstatable$ = this.isReinstatable();
|
||||||
if (this.url.indexOf('?') > 0) {
|
|
||||||
this.url = this.url.substr(0, this.url.indexOf('?'));
|
|
||||||
}
|
|
||||||
this.hasChanges().pipe(first()).subscribe((hasChanges) => {
|
this.hasChanges().pipe(first()).subscribe((hasChanges) => {
|
||||||
if (!hasChanges) {
|
if (!hasChanges) {
|
||||||
this.initializeOriginalFields();
|
this.initializeOriginalFields();
|
||||||
|
Reference in New Issue
Block a user