Problem/Motivation

Can't negate the rule of page visibilities when you edit the sitewide alert.

Steps to reproduce

  • PHP 8.1
  • create a sitewide alert
  • open to editing a just created sitewide alert
  • try to save
  • See an error that the Negate for listed pages field can't be null.

Comments

deulenko created an issue. See original summary.

chrissnyder’s picture

Status: Active » Postponed (maintainer needs more info)

I cannot reproduce this issue using version 2.0.2 and the steps provided.

Can you confirm:

  • The version of the module in use.
  • If there are any additional steps needed to reproduce this issue. For example, are certain options on the alert selected? A screenshot may be helpful.
gabriel.passarelli’s picture

StatusFileSize
new169.78 KB

I can confirm this is happening:
So the Steps to reproduce are:

  • PHP 8.1
  • create a sitewide alert
  • open to editing a just created sitewide alert
  • set the page visibility option to limit by page
  • set the "Negate for listed pages" as off
  • try to save
  • See an error that the Negate for listed pages field can't be null.
chrissnyder’s picture

@gabriel.passarelli which version of the module and drupal core are you using?

gabriel.passarelli’s picture

@ChrisSnyder
Drupal Version 9.4.2
PHP Version 8.1.7
Sitewide Alert Version: 2.0.2

  • ChrisSnyder committed 893d93b1 on 2.x
    Issue #3301339 by gabriel.passarelli, ChrisSnyder, deulenko: Can't...
chrissnyder’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.