Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When running webform_update_8045, the script returned an error saying the module "webform_node_test_translation" does not exist. This was due to the fact that WebformReflectionHelper::getSubModules lists it as a submodule, although it's not something that's generally usable. Using the nomask-option when calling scanDirectory of FileSystemInterface fixes the issue.
Steps to reproduce
Run webform_update_8045 or any other invocation of WebformReflectionHelper::getSubModules.
Proposed resolution
Call FileSystemInterface::scanDirectory with the nomask-option set to '/^tests$/'.
Comment | File | Size | Author |
---|---|---|---|
webform-submodules.patch | 705 bytes | lammensj | |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at Webform module Open Collective, The Big Blue House commentedComment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer and at Webform module Open Collective, The Big Blue House commented