Skip to content

Commit 9b84837

Browse files
authored
Merge pull request #1078 from t0mgerman/issue-1077
Amend DynamicForm.tsx to use EntityPropertyName rather than InternalName - Fix for #1077
2 parents 51e874b + 93dea16 commit 9b84837

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controls/dynamicForm/DynamicForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ export class DynamicForm extends React.Component<IDynamicFormProps, IDynamicForm
323323
let dateFormat: DateFormat | undefined;
324324
let principalType = "";
325325
if (item !== null) {
326-
defaultValue = item[field.InternalName];
326+
defaultValue = item[field.EntityPropertyName];
327327
}
328328
else {
329329
defaultValue = field.DefaultValue;
@@ -455,7 +455,7 @@ export class DynamicForm extends React.Component<IDynamicFormProps, IDynamicForm
455455
context: this.props.context,
456456
disabled: this.props.disabled || (disabledFields && disabledFields.indexOf(field.InternalName) > -1),
457457
listId: this.props.listId,
458-
columnInternalName: field.InternalName,
458+
columnInternalName: field.EntityPropertyName,
459459
label: field.Title,
460460
onChanged: this.onChange,
461461
required: field.Required,

0 commit comments

Comments
 (0)