Skip to content

Commit

Permalink
BUGIFX: Exclude deleted sys_files_references
Browse files Browse the repository at this point in the history
  • Loading branch information
Schweriner committed Mar 8, 2016
1 parent 4fcf051 commit fc64703
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Domain/Repository/CopyrightRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public function findByRootline($rootlines) {
LEFT JOIN sys_file_metadata AS meta ON (file.uid=meta.file)
LEFT JOIN pages AS p ON (ref.pid=p.uid)
WHERE (ref.copyright IS NOT NULL OR meta.copyright!="")
AND p.deleted=0 AND p.hidden=0 AND file.missing=0 AND file.uid IS NOT NULL ' . $pidClause);
AND p.deleted=0 AND p.hidden=0 AND file.missing=0 AND file.uid IS NOT NULL
AND ref.deleted=0 AND ref.hidden=0 ' . $pidClause);

return $query->execute();
}
Expand Down

0 comments on commit fc64703

Please sign in to comment.