From 0c0470a60e74b858d576c7477f40ebb32ceb2c8d Mon Sep 17 00:00:00 2001 From: Sachin S P <52343650+SachinPremkumar@users.noreply.github.com> Date: Wed, 13 Nov 2024 14:04:56 +0530 Subject: [PATCH] dropdown value translate (#487) Signed-off-by: Sachin S P Co-authored-by: Sachin S P --- lib/ui/process_ui/widgets/dropdown_control.dart | 4 ++-- lib/ui/process_ui/widgets/dynamic_dropdown_control.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ui/process_ui/widgets/dropdown_control.dart b/lib/ui/process_ui/widgets/dropdown_control.dart index c783d297..2b009530 100644 --- a/lib/ui/process_ui/widgets/dropdown_control.dart +++ b/lib/ui/process_ui/widgets/dropdown_control.dart @@ -113,8 +113,8 @@ class _CustomDropDownState extends State { temp.forEach((element) { if (element!.code == value.code && element.langCode == code) { registrationTaskProvider.addSimpleTypeDemographicField( - widget.field.id ?? "", value.name, code); - registrationTaskProvider.addSelectedCode(widget.field.id ?? "", value.code); + widget.field.id ?? "", element.name, code); + registrationTaskProvider.addSelectedCode(widget.field.id ?? "", element.code); } }); } diff --git a/lib/ui/process_ui/widgets/dynamic_dropdown_control.dart b/lib/ui/process_ui/widgets/dynamic_dropdown_control.dart index f6a86e73..7890a41a 100644 --- a/lib/ui/process_ui/widgets/dynamic_dropdown_control.dart +++ b/lib/ui/process_ui/widgets/dynamic_dropdown_control.dart @@ -60,8 +60,8 @@ class _CustomDynamicDropDownState extends State { temp.forEach((element) { if (element!.code == value.code && element.langCode == code) { registrationTaskProvider.addSimpleTypeDemographicField( - widget.field.id ?? "", value.name, code); - registrationTaskProvider.addSelectedCode(widget.field.id ?? "", value.code); + widget.field.id ?? "", element.name, code); + registrationTaskProvider.addSelectedCode(widget.field.id ?? "", element.code); } }); }