mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
When removing the logo, also delete white_label_logo_link preference
since it has no sense without the logo
This commit is contained in:
committed by
Konrad
parent
35778ecf1d
commit
679fcc0114
@@ -6,6 +6,8 @@ class WhiteLabelReflex < ApplicationReflex
|
||||
|
||||
def remove_logo
|
||||
@enterprise.update!(white_label_logo: nil)
|
||||
# delete the white_label_logo_link attribute as well since it has no meaning without the logo
|
||||
@enterprise.update!(white_label_logo_link: "")
|
||||
|
||||
f = ActionView::Helpers::FormBuilder.new(:enterprise, @enterprise, view_context, {})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user