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

Revert "[react] Fix default values in entity form" #13143

Merged
merged 1 commit into from
Nov 26, 2020

Conversation

ctamisier
Copy link
Contributor

@ctamisier ctamisier commented Nov 25, 2020

Simplify code, this part is no longer required.
Now, the use of normalized DTO ensures that a User is defined (linked to the entity) or not.
There is no "login" field in the handled Entity anymore that can be empty.

(The issue was only when DTO are used).
initial issue: #12784

if (isNew) {
props.createEntity(cloneEntity);
props.createEntity(entity);
Copy link
Contributor

@qmonmert qmonmert Nov 25, 2020

Choose a reason for hiding this comment

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

the ticket #12784 continue to work ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes it keeps working (Tried with oauth2 and keycloak, and tried before and after your fix).
Is there still a cloneEntity that I didn't remove ?

Copy link
Contributor

Choose a reason for hiding this comment

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

nope it's good :)

@pascalgrimaud pascalgrimaud merged commit 1a8d009 into jhipster:main Nov 26, 2020
@ctamisier ctamisier deleted the simplify branch November 26, 2020 11:55
@pascalgrimaud pascalgrimaud added this to the 7.0.0-beta.0 milestone Dec 18, 2020
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.

None yet

3 participants