Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mirekmarek committed Nov 10, 2023
1 parent ff879e3 commit 4f5adad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function getEditForm(): Form
} );
$old_name = $this->getName();
$name_field->setValidator( function( Form_Field_Input $field ) use ( $old_name ) {
return DataModel_Definition_Property::checkPropertyName( $field->getName(), $field, $old_name );
return DataModel_Definition_Property::checkPropertyName( $field->getValue(), $field, $old_name );
} );
$name_field->setIsReadonly( true );

Expand Down

0 comments on commit 4f5adad

Please sign in to comment.