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- (SPARCRequest) Email "Requester" Column Feature [#151517872] #1163

Merged
merged 4 commits into from Nov 2, 2017

Conversation

jwiel86
Copy link
Contributor

@jwiel86 jwiel86 commented Oct 18, 2017

@@ -62,6 +62,10 @@ def consult_arranged_date=(date)
write_attribute(:consult_arranged_date, date.present? ? Time.strptime(date, "%m/%d/%Y") : nil)
end

def display_service_requester_name
Copy link
Contributor

Choose a reason for hiding this comment

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

If service requester is an identity, then we can do something equivalent using ssr.service_requester.full_name

%tbody
- @ssrs_to_be_displayed.each do |ssr|
%tr.skinny-black-border
%td.skinny-black-border.center
%strike= ssr.display_id
%td.skinny-black-border.center
%strike= ssr.org_tree_display
%td.skinny-black-border.center
%strike= ssr.display_service_requester_name
Copy link
Contributor

Choose a reason for hiding this comment

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

ssr.service_requester.try(&:full_name) || 'N/A'

@@ -38,5 +39,6 @@
%td.skinny-black-border.center= ssr.display_id
%td.skinny-black-border.center= ssr.org_tree_display
%td.skinny-black-border.center= PermissibleValue.get_value('status', ssr.reload.status)
%td.skinny-black-border.center= ssr.display_service_requester_name
Copy link
Contributor

Choose a reason for hiding this comment

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

ssr.service_request.try(&:full_name) || 'N/A'

@jwiel86 jwiel86 force-pushed the jm-email-requester-bug branch 2 times, most recently from b9ec986 to 1f4e282 Compare October 23, 2017 13:17
@Stuart-Johnson Stuart-Johnson merged commit 309e3b0 into v3.1.0 Nov 2, 2017
@Stuart-Johnson Stuart-Johnson deleted the jm-email-requester-bug branch November 2, 2017 16:18
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