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 org_certificate_controller :edit cannot render #847

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

pojiro
Copy link
Contributor

@pojiro pojiro commented Jul 28, 2022

related commit is 8be8a6f?diff=split&w=0#diff-e253447b15c2a82a129c72a07aae8d99cc3c86efed4fc04bb9c6cd859a9738ee

This bug could have been prevented with tests, so added a test.

@pojiro pojiro marked this pull request as ready for review July 28, 2022 08:16
Comment on lines -12 to +14
<input type="checkbox" name="jitp_toggle" id="jitp_toggle" checked={f.data.jitp}>
<input type="checkbox" name="jitp_toggle" id="jitp_toggle" checked={not is_nil(f.data.jitp)}>
<%= hidden_input fp, :delete, id: "jitp-delete" %>
<div hidden={!f.data.jitp} id="jitp_form">
<div hidden={is_nil(f.data.jitp)} id="jitp_form">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

f.data.jitp is not boolean, is nil or struct.

Copy link
Collaborator

@jjcarstens jjcarstens left a comment

Choose a reason for hiding this comment

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

Thanks!

@jjcarstens jjcarstens merged commit 2b31c21 into nerves-hub:main Jul 28, 2022
@pojiro pojiro deleted the patch branch July 28, 2022 21:21
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.

2 participants