Installer - CiviGrant option no longer works
Overview
When performing a web-based installation on Drupal or WordPress, it presents a list of components that you can toggle. One option no longer works correctly.
Reproduction steps
- Create an empty D7/BD/WP site
- Enable CiviCRM
- In the status alert, click the link to
civicrm/setup
- Enable the CiviGrant option
- Proceed with install
Current behaviour
CiviGrant is not activated
Expected behaviour
Activate CiviGrant extension
Or: Don't present the option
Environment information
Hydra site for WP: http://site-list.test-1.civicrm.org:8001/?filter=hydra-* (http://hydra-wp.test-1.civicrm.org:8002/)
Comments
I noticed this while trying the 5.50 installer, but it probably regressed circa 5.48.
The installer currently presents a list of components (https://github.com/civicrm/civicrm-core/blob/master/setup/plugins/blocks/components.civi-setup.php) and populates $e->getModel()->components
.
To configurably toggle extensions during install, it needs to update $e->getModel()->extensions
.
https://github.com/civicrm/civicrm-core/blob/master/setup/src/Setup/Model.php#L42-L45