diff --git a/core/modules/file/src/Plugin/EntityReferenceSelection/FileSelection.php b/core/modules/file/src/Plugin/EntityReferenceSelection/FileSelection.php index 9250733..7724192 100644 --- a/core/modules/file/src/Plugin/EntityReferenceSelection/FileSelection.php +++ b/core/modules/file/src/Plugin/EntityReferenceSelection/FileSelection.php @@ -29,14 +29,12 @@ protected function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') $query = parent::buildEntityQuery($match, $match_operator); // Allow referencing : // - files with status "permanent" - // - or files uploaded by the current user with the last 2 seconds (since - // newly uploaded files only become "permanent" after the containing - // entity gets validated and saved.) + // - or files uploaded by the current user (since newly uploaded files only + // become "permanent" after the containing entity gets validated and + // saved.) $query->condition($query->orConditionGroup() ->condition('status', FILE_STATUS_PERMANENT) - ->condition($query->andConditionGroup() - ->condition('uid', $this->currentUser->id()) - ->condition('created', time() - (60 * 2), '>'))); + ->condition('uid', $this->currentUser->id())); return $query; }