Skip to content

Commit

Permalink
Merge pull request #807 from sparc-request/jtm_org_tree_update_bug
Browse files Browse the repository at this point in the history
Jtm org tree update bug
  • Loading branch information
jleonardw9 committed Dec 12, 2016
2 parents fb2b8a1 + 2de7f68 commit c412876
Show file tree
Hide file tree
Showing 2 changed files with 149 additions and 150 deletions.
3 changes: 1 addition & 2 deletions app/models/organization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ def process_ssrs_parent

#TODO SubServiceRequest.where(organization: self.all_child_organizations).each(:&update_org_tree)
def update_ssr_org_name
self.org_children.each{ |org| org.update_ssr_org_name }
self.sub_service_requests.each{ |ssr| ssr.update_org_tree }
SubServiceRequest.where( organization: self.all_child_organizations<<self ).each(&:update_org_tree)
end

def service_providers_lookup
Expand Down

0 comments on commit c412876

Please sign in to comment.