Skip to content

Commit

Permalink
"8.x-1.x > 8.1.3 (#12)
Browse files Browse the repository at this point in the history
* D8CORE-2499 Updated composer license (#10)
* Filter out null entity ids (#11)
* 8.1.3
Co-authored-by: sws-developers@lists.stanford.edu <CircleCI>
Co-authored-by: pookmish <pookmish@stanford.edu>
  • Loading branch information
imonroe authored Sep 9, 2020
1 parent 7d86e8d commit e004005
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Stanford Migrate

8.x-1.3
--------------------------------------------------------------------------------
_Release Date: 2020-09-09_

- Filter out null entity ids (#11) (1843069)
- D8CORE-2499 Updated composer license (#10) (e2eff55)

8.x-1.2
--------------------------------------------------------------------------------
_Release Date: 2020-08-07_
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "drupal-custom-module",
"homepage": "https://github.com/SU-SWS/stanford_migrate",
"authors": [],
"license": "GPL-2.0+",
"license": "GPL-2.0-or-later",
"minimum-stability": "dev",
"prefer-stable": true,
"repositories": [
Expand Down
3 changes: 2 additions & 1 deletion src/EventSubscriber/EventsSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,11 @@ public function postImport(MigrateImportEvent $event) {
if (!$id_exists_in_source) {
// Find the entity id from the id map.
$destination_ids = $id_map->lookupDestinationIds($id_map->currentSource());
$destination_ids = array_filter(reset($destination_ids));

/** @var \Drupal\Core\Entity\ContentEntityInterface[] $entities */
// $destination_ids should be a single item.
$entities = $entity_storage->loadMultiple(reset($destination_ids));
$entities = $entity_storage->loadMultiple($destination_ids);

switch ($orphan_action) {
case self::ORPHAN_DELETE:
Expand Down
2 changes: 1 addition & 1 deletion stanford_migrate.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: 'Adds more functionality to migrate and migrate plus modules'
type: module
core_version_requirement: ^8.8 || ^9
package: 'Stanford'
version: 8.x-1.2
version: 8.x-1.3
dependencies:
- drupal:migrate
- migrate_plus:migrate_plus
Expand Down

0 comments on commit e004005

Please sign in to comment.