Skip to content

Commit

Permalink
[FIX] website_event: repair hide_sponsors with correct selector
Browse files Browse the repository at this point in the history
Before this fix, the 'hide_sponsors' value was used to hide the
row of sponsors in several views:
- page of all exhibitors
- page of single exhibitor
- if website_event_track is installed -> registration confirmation

But actually it did not do anything anymore, because the old
selector used to apply the display none !important was hard-coded
to the previous code structure. This is very unstable, and structure
changed first in 35f70e5

Also, o_wevent_sponsor_wrapper selector was not used anywhere.

FIX:

Use o_wevent_sponsor_wrapper to not depend of structure anymore.
'hide_sponsors' adds o_wevent_hide_sponsors on the view and the
sponsors bar will be hidden, as expected.

Task-3213873

closes odoo#115453

X-original-commit: 13778a4
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
  • Loading branch information
Odoonan committed Mar 16, 2023
1 parent 9b98893 commit 5fa77db
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@
* SPONSORS
*/

// small hack to hide sponsors on specific views
.o_wevent_hide_sponsors .container.mt32.mb16.d-none.d-md-block.d-print-none {
// Not a very accurate way to target the 'sponsors' block -> improve in master
.o_wevent_hide_sponsors .o_wevent_sponsor_wrapper {
display: none !important;
}

0 comments on commit 5fa77db

Please sign in to comment.