Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-14703

module.add adds a module to the wrong parent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.10-RC1
    • 3.1.9, 3.2.0-dev, 3.2.0-RC1
    • ACP, Extensions, Other
    • None

      While selecting the parent for the custom module here https://github.com/phpbb/phpbb/blob/3.1.x/phpBB/phpbb/db/migration/tool/module.php#L215-L218 the query doesn't take in account that thre're more than 1 modules with the same module_langname.
      For example, there're 3 ACP_MANAGE_FORUMS modules. The query takes the [random] 1st row from the result to set as parent, which may lead to wrong extension ACP/MCP/UCP module placing.
      Module categories have no module_basename and module_mode which can be used to correctly select them.

            Marc Marc
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: