fix: remove brouillon from repousser_expiration
This commit is contained in:
parent
8c1bc9e62f
commit
96adffb5f5
2 changed files with 1 additions and 3 deletions
|
@ -12,8 +12,6 @@ class Dossiers::BatchOperationComponent < ApplicationComponent
|
|||
|
||||
def operations_for_dossier(dossier)
|
||||
case dossier.state
|
||||
when Dossier.states.fetch(:brouillon)
|
||||
[BatchOperation.operations.fetch(:repousser_expiration)]
|
||||
when Dossier.states.fetch(:en_construction)
|
||||
[BatchOperation.operations.fetch(:passer_en_instruction), BatchOperation.operations.fetch(:repousser_expiration)]
|
||||
when Dossier.states.fetch(:en_instruction)
|
||||
|
|
|
@ -58,7 +58,7 @@ class BatchOperation < ApplicationRecord
|
|||
when BatchOperation.operations.fetch(:follow) then
|
||||
query.visible_by_administration.without_followers.en_cours
|
||||
when BatchOperation.operations.fetch(:repousser_expiration) then
|
||||
query.visible_by_administration.close_to_expiration
|
||||
query.visible_by_administration.termine_or_en_construction_close_to_expiration
|
||||
when BatchOperation.operations.fetch(:repasser_en_construction) then
|
||||
query.visible_by_administration.state_en_instruction
|
||||
when BatchOperation.operations.fetch(:unfollow) then
|
||||
|
|
Loading…
Add table
Reference in a new issue