Skip to content

Commit

Permalink
8.1.22
Browse files Browse the repository at this point in the history
- Error check when the migrate instance doesnt load
  • Loading branch information
pookmish authored Feb 2, 2022
2 parents acd6ea6 + ef255a3 commit fca3ab9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Stanford Migrate


8.x-1.22
--------------------------------------------------------------------------------
_Release Date: 2022-02-02_

- Error check when the migrate instance doesnt load


8.x-1.21
--------------------------------------------------------------------------------
_Release Date: 2022-01-27_
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.21
version: 8.x-1.22
dependencies:
- drupal:migrate
- migrate_plus:migrate_plus
Expand Down
2 changes: 1 addition & 1 deletion stanford_migrate.module
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function stanford_migrate_get_migration(NodeInterface $node) {
$migrate = $plugin_manager->createInstance($migration->id());

// CSV Imported content can be ignored since it's normally a one time thing.
if ($migrate->getSourcePlugin()->getPluginId() == 'csv') {
if (!$migrate || $migrate->getSourcePlugin()->getPluginId() == 'csv') {
continue;
}

Expand Down

0 comments on commit fca3ab9

Please sign in to comment.