[fix #2612] Admin: add missing steps to admin UI

This commit is contained in:
simon lehericey 2019-01-04 15:43:02 +01:00 committed by Pierre de La Morinerie
parent 8ca7eb1c54
commit a197285742
6 changed files with 43 additions and 6 deletions

View file

@ -362,6 +362,20 @@ class Procedure < ApplicationRecord
end
end
def missing_steps
result = []
if service.nil?
result << :service
end
if gestionnaires.empty?
result << :instructeurs
end
result
end
private
def claim_path_ownership!(path)