Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Fixes #1674: Config Import Incorrect On Multi-site install. #1691

Merged
merged 1 commit into from
Jun 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion config/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ drupal:
drush:
bin: ${composer.bin}/drush
dir: ${docroot}
uri: default
assume: yes
passthru: yes
logoutput: yes
Expand Down
4 changes: 3 additions & 1 deletion src/Robo/Hooks/InitHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ public function initialize() {
// We set the value for site late in the bootstrap process so that a user
// may define its value at runtime via --define. This can only happen after
// input has been processed.
$site = $this->getConfigValue('site', 'default');
$multisites = $this->getConfigValue('multisites');
$first_multisite = reset($multisites);
$site = $this->getConfigValue('site', $first_multisite);
$this->getConfig()->setSiteConfig($site);
}

Expand Down