diff --git a/scripts/article_type_term.php b/scripts/article_type_term.php index a6a2f18..2f6d802 100755 --- a/scripts/article_type_term.php +++ b/scripts/article_type_term.php @@ -95,6 +95,8 @@ function apply_term($term_id, $entity_ids) { if ($add_term == TRUE) { $entity_terms = array_merge($entity->get('field_article_type')->getValue(), [['target_id' => $term_id]]); $entity->set('field_article_type', $entity_terms); + // Prevent this cleanup from changing the updated time of all our articles. + $entity->setChangedTime($entity->getChangedTime()); $entity->save(); }