fix deleted procedure that still display in draft tabs
This commit is contained in:
parent
753731cc53
commit
f89391eb7d
1 changed files with 3 additions and 3 deletions
|
@ -14,9 +14,9 @@ module Instructeurs
|
|||
.includes(:defaut_groupe_instructeur)
|
||||
.order(closed_at: :desc, unpublished_at: :desc, published_at: :desc, created_at: :desc)
|
||||
|
||||
@procedures_publiees = paginated_published_procedures
|
||||
@procedures_draft = paginated_draft_procedures
|
||||
@procedures_closed = paginated_closed_procedures
|
||||
@procedures_publiees = paginated_published_procedures.merge(@procedures)
|
||||
@procedures_draft = paginated_draft_procedures.merge(@procedures)
|
||||
@procedures_closed = paginated_closed_procedures.merge(@procedures)
|
||||
@procedures_publiees_count = current_instructeur.procedures.publiees.count
|
||||
@procedures_draft_count = current_instructeur.procedures.brouillons.count
|
||||
@procedures_closed_count = current_instructeur.procedures.closes.count
|
||||
|
|
Loading…
Reference in a new issue