Skip to content

Commit

Permalink
#132 - Followup: Only rewrite the value if changing something.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brant Wynn committed Jul 31, 2019
1 parent 6fe3b8a commit e308de1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/df/df_tools/df_tools_media/df_tools_media.module
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ function df_tools_media_media_presave(MediaInterface $entity) {
$image = reset($images_list);
if (empty($image['alt'])) {
$image['alt'] = $entity->label();
$entity->$image_field->setValue($image);
}
$entity->$image_field->setValue($image);
}
}

Expand Down

0 comments on commit e308de1

Please sign in to comment.