Allow saving a position when create a widget card
We are ensuring that only position field is rendered only on non-header cards. Note that we have 3 sections that use widget cards: - Homepage (cards and header cards) - Custompages (only have cards) - Sdg Homepage (cards and header cards)
This commit is contained in:
@@ -45,7 +45,7 @@ module Admin::Widget::CardsActions
|
||||
|
||||
def allowed_params
|
||||
[
|
||||
:link_url, :button_text, :button_url, :alignment, :header, :columns,
|
||||
:link_url, :button_text, :button_url, :alignment, :header, :columns, :order,
|
||||
translation_params(Widget::Card),
|
||||
image_attributes: image_attributes
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user