Skip to content

Commit

Permalink
782 by Inlead: Process node status only for new nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
guddo authored and Martin Cording committed Mar 26, 2019
1 parent 736c99e commit 6ad272c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Expand Up @@ -340,7 +340,7 @@ function ding_billetexpressen_import_feeds_importer_default() {
),
'update_existing' => '2',
'input_format' => 'ding_wysiwyg',
'skip_hash_check' => 0,
'skip_hash_check' => 1,
'bundle' => 'ding_event',
),
),
Expand Down
Expand Up @@ -84,9 +84,11 @@ function ding_billetexpressen_import_feeds_presave(FeedsSource $source, $entity,
}
}

// Map node status.
$status = variable_get('ding_billetexpressen_import_status', 0);
$entity->status = $status;
// Map node status only for new nodes.
if (!$entity->nid) {
$status = variable_get('ding_billetexpressen_import_status', 0);
$entity->status = $status;
}

// Convert date to UTC.
$date_start = new DateTime($item['date_start']);
Expand Down

0 comments on commit 6ad272c

Please sign in to comment.