Skip to content

Commit 38d5f87

Browse files
authored
Merge pull request DSpace#3916 from tdonohue/port_3818_to_7x
[Port dspace-7_x] Changing metadata in a user profile without specifying a password brings up a success and an error panel
2 parents 1cc4756 + 5a5c1f1 commit 38d5f87

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/profile-page/profile-page.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ export class ProfilePageComponent implements OnInit {
173173
*/
174174
updateSecurity() {
175175
const passEntered = isNotEmpty(this.password);
176-
if (this.invalidSecurity) {
176+
const validCurrentPassword = isNotEmpty(this.currentPassword);
177+
if (validCurrentPassword && !passEntered) {
177178
this.notificationsService.error(this.translate.instant(this.PASSWORD_NOTIFICATIONS_PREFIX + 'error.general'));
178179
}
179180
if (!this.invalidSecurity && passEntered) {

0 commit comments

Comments
 (0)