When removing the logo, also delete white_label_logo_link preference

since it has no sense without the logo
This commit is contained in:
Jean-Baptiste Bellet
2023-03-20 16:06:08 +01:00
committed by Konrad
parent 35778ecf1d
commit 679fcc0114

View File

@@ -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, {})