Page MenuHomePhabricator

When anons can place blocks, "Undefined index" notice in SpecialBlock
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce

  • Configure $wgGroupPermissions['*']['block'] = true;
  • Place a block as an anon

What happens?:
Notice: Undefined index: Watch in /srv/patchdemo-wikis/e82c9c6235/w/includes/specials/SpecialBlock.php on line 921 after form submission

What should have happened instead?:
No problems

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
Core master

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 710089 had a related patch set uploaded (by DannyS712; author: DannyS712):

[mediawiki/core@master] SpecialBlock: avoid \"Undefined index\" notice

https://gerrit.wikimedia.org/r/710089

Urbanecm triaged this task as Lowest priority.Aug 5 2021, 1:44 PM

Change 710089 merged by jenkins-bot:

[mediawiki/core@master] SpecialBlock: avoid \"Undefined index\" notice

https://gerrit.wikimedia.org/r/710089

Urbanecm assigned this task to DannyS712.