Skip to content

Commit

Permalink
8.2.2
Browse files Browse the repository at this point in the history
- Added conditional to fix null fatal error on 8102 update. (#205)
  • Loading branch information
pookmish authored May 10, 2022
2 parents a466adb + ebfed12 commit 5aeb3d9
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Stanford Profile Helper


8.x-2.2
--------------------------------------------------------------------------------
_Release Date: 2022-05-10_

- Added conditional to fix null fatal error on 8102 update. (#205)

8.x-2.1
--------------------------------------------------------------------------------
_Release Date: 2022-05-09_
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Stanford Basic Page Types'
description: 'Provides support for basic page types in stanford_page nodes'
version: 8.x-2.1
version: 8.x-2.2
core_version_requirement: '^8.8 || ^9'
type: module
project: Stanford
Expand Down
2 changes: 1 addition & 1 deletion modules/stanford_intranet/stanford_intranet.info.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Stanford Intranet'
description: 'Locks down access to the entire site if configured.'
version: 8.x-2.1
version: 8.x-2.2
core_version_requirement: '^8.8 || ^9'
type: module
project: Stanford
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Stanford Paragraph Card'
description: 'Adds helpers and modifications to the card paragraph type.'
version: 8.x-2.1
version: 8.x-2.2
core_version_requirement: '^8 || ^9'
type: module
project: Stanford
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Stanford Profile Drush'
description: 'A collection of Drush commands since commands in the profile are not discoverable.'
version: 8.x-2.1
version: 8.x-2.2
core_version_requirement: '^8 || ^9'
type: module
project: Stanford
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Stanford Profile Styles'
description: 'A module for theming'
version: 8.x-2.1
version: 8.x-2.2
core_version_requirement: '^8 || ^9'
type: module
project: Stanford
2 changes: 1 addition & 1 deletion stanford_profile_helper.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: module
description: 'Stanford Profile Helper Module.'
core_version_requirement: ^8.8 || ^9
package: Stanford
version: 8.x-2.1
version: 8.x-2.2
dependencies:
- 'admin_toolbar:admin_toolbar'
- 'admin_toolbar:admin_toolbar_tools'
Expand Down
5 changes: 4 additions & 1 deletion stanford_profile_helper.post_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ function stanford_profile_helper_post_update_8102() {
foreach ($configs as $data) {
/** @var \Drupal\pathauto\PathautoPatternInterface $pathauto_pattern */
$pathauto_pattern = $pathauto_storage->load($data['id']);
if ($pathauto_pattern->getPattern() != $data['pattern']) {
if (
$pathauto_pattern &&
$pathauto_pattern->getPattern() != $data['pattern']
) {
$pathauto_pattern->setPattern($data['pattern'])->save();
}
}
Expand Down

0 comments on commit 5aeb3d9

Please sign in to comment.