Skip to content

I can not to subscribe on change of all sections in Stores ->Configuration using event admin_system_config_changed_section #5035

@katesuykovskaya

Description

@katesuykovskaya

Steps to reproduce

  1. M 2.0.7
  2. Create extension, create etc/adminhtml/system.xml there
  3. add section tab with id, that contains number, in my case "b2b" https://drive.google.com/a/interiorwebdesign.com/file/d/0BzTvZltZJMLlemNCOGVwdUM5S00/view?usp=drivesdk
  4. create etc/adminhtml/events.xml and add event listener to listen to changing of this section https://drive.google.com/a/interiorwebdesign.com/file/d/0BzTvZltZJMLlRFpqOEIyc2RKRW8/view?usp=drivesdk

Actual result

  1. Error message Invalid XML in file D:/OpenServer/domains/magento207.loc/app/code/IWD/SalesRep/etc/adminhtml/events.xml:
    Element 'event', attribute 'name': [facet 'pattern'] The value 'admin_system_config_changed_section_b2b' is not accepted by the pattern '[a-zA-Z_]+'.
    Line: 3

Element 'event', attribute 'name': 'admin_system_config_changed_section_b2b' is not a valid value of the atomic type 'eventName'.
Line: 3

Element 'event', attribute 'name': Warning: No precomputed value available, the value was either invalid or something strange happend.
Line: 3

Expected result

  1. There should be ability to subcsribe on changing of each section, so I see 2 possible options:
    • extend regex to allow numbers be in name of event, or
    • disallow to set name of section, that contains numbers
      In other words, patterns, that are used to validate there values should be compatible.

Metadata

Metadata

Assignees

Labels

Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releasebug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions