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/WTH - (SPARCDashboard) Admin Edit DateTimePicker Bug [#151329978] #1136

Merged
merged 1 commit into from Oct 4, 2017

Conversation

jwiel86
Copy link
Contributor

@jwiel86 jwiel86 commented Sep 22, 2017

end

def requester_contacted_date=(date)
write_attribute(:requester_contacted_date, Time.strptime(date, "%m/%d/%Y")) if date.present?
date.present? ? write_attribute(:requester_contacted_date, Time.strptime(date, "%m/%d/%Y")) : write_attribute(:requester_contacted_date, nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

These might be able to be condensed just a little bit by moving the ternary.

write_attribute(:requester_contacted_date, date.present? ? Time.strptime(date, "%m/%d/%Y") : nil)

@Stuart-Johnson Stuart-Johnson merged commit 8418214 into v3.0.0b Oct 4, 2017
@Stuart-Johnson Stuart-Johnson deleted the jm-wh-admin-edit-date-bug branch October 4, 2017 14:28
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

5 participants