Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Edit identity (primary key) field (#332 issue on GitHub) #334

Merged
merged 1 commit into from
Mar 18, 2015

Conversation

vasiakorobkin
Copy link

It was a lot easier than I thought.
Fixed #332
Checked and tested on example configuration.
But all changes to example configuration has been undone.
I've left only patch changes. Is that OK?

@@ -25,6 +25,9 @@ define(function () {
this.view = view;
this.entity = this.view.getEntity();

// in case of entity identifier being modified
this.origEntityId = this.$scope.entry.values[this.entity.identifier().name()]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use the simpler

this.entityId = entry[this.entity.identifier().name()];

@fzaninotto
Copy link
Member

Almost all right. I'd just use a better name for the extra parameter - we try to avoid abbreviations in variable names.

fzaninotto added a commit that referenced this pull request Mar 18, 2015
fix: Edit identity (primary key) field (#332 issue on GitHub)
@fzaninotto fzaninotto merged commit 8edb31e into marmelab:master Mar 18, 2015
@fzaninotto
Copy link
Member

I did the renaming myself in d02f11c. Thanks for the patch!

@vasiakorobkin vasiakorobkin deleted the bugix_identity_field_edit branch March 19, 2015 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edit identity (primary key) field
2 participants