Skip to content

Commit

Permalink
Fix initiative form is not taking into account the scope selected (de…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrlpz authored Nov 5, 2024
1 parent e903b79 commit 1f99a2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def build_initiative
end

def scoped_type
InitiativesTypeScope.order(:id).find_by(type: form.type)
InitiativesTypeScope.order(:id).find_by(type: form.type, scope: form.scope)
end

def signature_end_date
Expand Down

0 comments on commit 1f99a2d

Please sign in to comment.