From 34a6b75a12a3851551929d740c0b54e6cc1d4abe Mon Sep 17 00:00:00 2001 From: Alfonso Salces Date: Wed, 19 Apr 2023 12:28:23 +0200 Subject: [PATCH] MOBILE-4292 user-profile-field: Assign context always --- .../components/user-profile-field/user-profile-field.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/features/user/components/user-profile-field/user-profile-field.ts b/src/core/features/user/components/user-profile-field/user-profile-field.ts index 21d4de6cd..441b36d6c 100644 --- a/src/core/features/user/components/user-profile-field/user-profile-field.ts +++ b/src/core/features/user/components/user-profile-field/user-profile-field.ts @@ -60,14 +60,15 @@ export class CoreUserProfileFieldComponent implements OnInit { this.data.field = this.field; this.data.edit = CoreUtils.isTrueOrOne(this.edit); + this.data.contextLevel = this.contextLevel; + this.data.contextInstanceId = this.contextInstanceId; + this.data.courseId = this.courseId; + if (this.edit) { this.data.signup = CoreUtils.isTrueOrOne(this.signup); this.data.disabled = 'locked' in this.field && CoreUtils.isTrueOrOne(this.field.locked); this.data.form = this.form; this.data.registerAuth = this.registerAuth; - this.data.contextLevel = this.contextLevel; - this.data.contextInstanceId = this.contextInstanceId; - this.data.courseId = this.courseId; } }