aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/organisation.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/organisation.rb')
-rw-r--r--app/models/organisation.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/organisation.rb b/app/models/organisation.rb
index b0c0692da..f6fba2d67 100644
--- a/app/models/organisation.rb
+++ b/app/models/organisation.rb
@@ -55,6 +55,7 @@ class Organisation < ActiveRecord::Base
organisation_referential = referentials.find_by id: referential_id
return organisation_referential if organisation_referential
+ # TODO: Replace each with find
workbenches.each do |workbench|
workbench_referential = workbench.all_referentials.find_by id: referential_id
return workbench_referential if workbench_referential