select statement always need to contain file_source respectively item_source

fix #7957 

Test case:

Share a file and reload the page. Without this patch you won't see the share icon next to the shared file, with this patch the share icon should appear.

cc @PVince81