Skip to content

Commit 496175f

Browse files
kkoehnMrSerth
authored andcommitted
fix submit_button bug
1 parent 9334a1f commit 496175f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/collections/_form.html.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
br
4949
.form-group
5050
.actions.btn-group role='group'
51-
= button_tag type: 'submit', class: 'btn btn-important', form: 'edit_collection' do
51+
= button_tag type: 'submit', class: 'btn btn-important', form: @collection.new_record? ? 'new_collection' : "edit_collection_#{@collection.id}" do
5252
i.fa-solid.fa-folder-open
5353
=< t('.button.save')
5454
- if @collection.tasks.present?

0 commit comments

Comments
 (0)