Skip to content

Commit

Permalink
Merge pull request #9 from restarone/patch-for-broken-categorizations
Browse files Browse the repository at this point in the history
Patch for broken categorizations
  • Loading branch information
donrestarone authored May 19, 2022
2 parents 2b80ce7 + 3cd03b7 commit 456fb85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/comfy/admin/cms/categories/_edit.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- url = comfy_admin_cms_site_category_path(@site, category)
= form_with model: @category, scope: :category, url: url, html: {class: "edit-category", id: dom_id(category)} do |form|
= form_with model: @category, scope: :category, url: url, html: {class: "edit-category", id: dom_id(category)}, local: false do |form|
.input-group
= form.text_field :label, class: "form-control form-control-sm", id: nil
.input-group-btn
Expand Down
2 changes: 1 addition & 1 deletion app/views/comfy/admin/cms/categories/_index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
= render "comfy/admin/cms/categories/show", category: category

- url = comfy_admin_cms_site_categories_path(@site)
= form_with scope: :category, url: url, html: {id: "new-category"} do |form|
= form_with scope: :category, url: url, html: {id: "new-category"}, local: false do |form|
= form.hidden_field :categorized_type, value: type
.input-group
= form.text_field :label, placeholder: t('.add_placeholder'), class: 'form-control form-control-sm', id: nil
Expand Down

0 comments on commit 456fb85

Please sign in to comment.