Skip to content

Commit

Permalink
fix: #308 fix drupal release url
Browse files Browse the repository at this point in the history
  • Loading branch information
Ines WALLON authored and wallon-ines committed Mar 21, 2021
1 parent 3d3d9f1 commit 83b5d34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf/drupal/default/sync/drupalfr_release.settings.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
xml_address: 'https://updates.drupal.org/release-history/drupal/8.x'
xml_address: 'https://updates.drupal.org/release-history/drupal/current'
langcode: fr
_core:
default_config_hash: LoAi4RTywI8FX8zyxeZaP960KNK4FYZbR7W-FEIUEI4
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ public function importReleaseListData(array $data) {
// Set values of fields.
$node->set('title', $result['name']);
$node->set('status', NodeInterface::PUBLISHED);
$node->set('created', $result['date']);
if (isset($result['date'])) {
$node->set('created', $result['date']);
}
$node->set('field_release_version_major', $result['version_major']);
if (isset($result['version_minor'])) {
$node->set('field_release_version_minor', $result['version_minor']);
Expand Down

0 comments on commit 83b5d34

Please sign in to comment.