Skip to content

Commit

Permalink
Merge pull request #35268 from dimagi/jt/invite-page-custom-data-bug
Browse files Browse the repository at this point in the history
Custom User Data Property String Bug
  • Loading branch information
Jtang-1 authored Oct 25, 2024
2 parents fc620ae + 5df565a commit ea62c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions corehq/apps/custom_data_fields/edit_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ def make_fieldsets(self, form_fields, is_post, field_name_includes_prefix=False)
data_bind_field_name = (
without_prefix(field_name, self.prefix) if field_name_includes_prefix else field_name)
data_binds = [
f"value: {self.ko_model}.{data_bind_field_name}.value",
f"disable: {self.ko_model}.{data_bind_field_name}.disable",
f"value: {self.ko_model}['{data_bind_field_name}'].value",
f"disable: {self.ko_model}['{data_bind_field_name}'].disable",
]
if hasattr(field, 'choices') or without_prefix(field_name, self.prefix) == PROFILE_SLUG:
data_binds.append("select2: " + json.dumps([
Expand Down

0 comments on commit ea62c08

Please sign in to comment.