Revert "Merge pull request #7907 from tchak/feat-cond-repetitions"
This reverts commit1900f8ff4c
, reversing changes made tofebffc2d64
. # Conflicts: # app/models/dossier.rb
This commit is contained in:
parent
b740c75f09
commit
0d10d36cb0
11 changed files with 144 additions and 229 deletions
|
@ -200,7 +200,7 @@ module Users
|
|||
respond_to do |format|
|
||||
format.html { render :brouillon }
|
||||
format.turbo_stream do
|
||||
@to_shows, @to_hides = @dossier.champs_public_all
|
||||
@to_shows, @to_hides = @dossier.champs_public
|
||||
.filter(&:conditional?)
|
||||
.partition(&:visible?)
|
||||
.map { |champs| champs_to_one_selector(champs) }
|
||||
|
@ -221,7 +221,7 @@ module Users
|
|||
respond_to do |format|
|
||||
format.html { render :modifier }
|
||||
format.turbo_stream do
|
||||
@to_shows, @to_hides = @dossier.champs_public_all
|
||||
@to_shows, @to_hides = @dossier.champs_public
|
||||
.filter(&:conditional?)
|
||||
.partition(&:visible?)
|
||||
.map { |champs| champs_to_one_selector(champs) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue