If a new DMB notification entity is created and none of the conditions (the site-wide checkbox, notification pages or content types) are modified, the bar does not display at all. I think it makes sense to have the bar display site-wide by default and apply restrictions if conditions are set as a part of the entity.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gantal created an issue. See original summary.

eernst’s picture

This patch should now make it so that site-wide and content type acts as an and/or with sitewide being the trump. So if a content type is selected it will assign the message bar to that content. But if sitewide is selected it doesn't matter what contents are selected.

eernst’s picture

FileSize
0 bytes
eernst’s picture

FileSize
838 bytes

Here is the actual patch

eernst’s picture

FileSize
1.07 KB

One more fix, it was acting as though the content type was the override, the helptext says sitewide is the override.

eernst’s picture

FileSize
1.07 KB

  • Mojiferous committed 5a554cb on 8.x-1.x authored by eernst
    Issue #3113546 by eernst: Message bar does not display if all conditions...
Mojiferous’s picture

Status: Active » Fixed
Mojiferous’s picture

Status: Fixed » Closed (fixed)