You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On upgrading to RefineryCMS 3.x I now get an exception error on updating a RefineryPage: unknown attribute 'images_attributes' for Refinery::Page
When I add {model: "Refinery::Page", tab: "Refinery::Pages::Tab"} to the above config the exception disappears but then I have a Images tab on every Page which I do not want.
The problem seems to be that in the pages_controller_decorator.rb the permitted_page_params are added unconditionally.
It is not a show stopper, but could it be solved?
The text was updated successfully, but these errors were encountered:
Hi @javinto it looks like enable_for does not do its job like it should. we probably should add conditional statement in the pages_controller_decorator.rb
Hi Brian,
I certainly would like to contribute to RefineryCMS but am not able to do that at short notice. I will plan to have a look at this issue in about 4 weeks time. I hope that is okay.
I had a RefineryCMS 2.x installation with a Projects extension where I had added the PageImages extension to the projects only:
On upgrading to RefineryCMS 3.x I now get an exception error on updating a RefineryPage: unknown attribute 'images_attributes' for Refinery::Page
When I add {model: "Refinery::Page", tab: "Refinery::Pages::Tab"} to the above config the exception disappears but then I have a Images tab on every Page which I do not want.
The problem seems to be that in the pages_controller_decorator.rb the permitted_page_params are added unconditionally.
It is not a show stopper, but could it be solved?
The text was updated successfully, but these errors were encountered: