Commit 13c94df0 authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #2894112 by tstoeckler: Media::hasSourceFieldChanged() must use FieldItemList::equals()

parent 4af8a4cf
......@@ -249,8 +249,8 @@ protected function getThumbnailUri($from_queue) {
*/
protected function hasSourceFieldChanged() {
$source_field_name = $this->getSource()->getConfiguration()['source_field'];
$current_value = $this->get($source_field_name)->getValue();
return (isset($this->original) && $current_value != $this->original->get($source_field_name)->getValue());
$current_items = $this->get($source_field_name);
return isset($this->original) && !$current_items->equals($this->original->get($source_field_name));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment