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

JM - (Production Bug)A NoMethodError occurred in protocols#create [#1… #1174

Merged
merged 3 commits into from Oct 30, 2017

Conversation

jwiel86
Copy link
Contributor

@jwiel86 jwiel86 commented Oct 26, 2017

…52288500]

If testing manually, please see the story. There are steps to reproduce. Thanks!

@@ -322,8 +322,10 @@ def convert_date_for_save(attrs, date_field)
def fix_identity
attrs = protocol_params
attrs[:project_roles_attributes].each do |index, project_role|
identity = Identity.find_or_create project_role[:identity_id]
project_role[:identity_id] = identity.id
if project_role[:identity_id].present?
Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed this exact code is also in Dashboard::ProtocolsController.rb. This change probably needs to happen there as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! Thanks!

@Stuart-Johnson Stuart-Johnson merged commit 2c14897 into master Oct 30, 2017
@Stuart-Johnson Stuart-Johnson deleted the jm-fix-identity-bug branch October 30, 2017 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants