Skip to content

Commit

Permalink
Merge pull request #2966 from benwbrum/development
Browse files Browse the repository at this point in the history
Development to fromthepage
  • Loading branch information
saracarl committed Feb 2, 2022
2 parents fb97fdc + b18e2c5 commit e61cd9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/controllers/collection_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,11 @@ def update
@collection.update(collection_params)
end

if @collection.save!
if @collection.save
flash[:notice] = t('.notice')
redirect_to action: 'edit', collection_id: @collection.id
else
edit # load the appropriate variables
render action: 'edit'
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/transcription_field/_field_layout.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
-if field.input_type == "instruction"
div id="fields[#{field.id}][#{field.label}]" class="field-instructions"
h5 =t('.instructions')
p =field.label
p ==field.label
-else
=label_tag field.label, field.label
-content = cell.nil? ? nil : cell.content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
-if field.input_type == "instruction"
div id="fields[#{field.id}][#{field.label}]" class="field-instructions"
h5 =t('.instructions')
p =field.label
p ==field.label
-else
=label_tag field.label, field.label
-if (defined? owner_preview) && owner_preview
Expand Down

0 comments on commit e61cd9f

Please sign in to comment.