Skip to content
Snippets Groups Projects
Commit 2cf69812 authored by Laura Hild's avatar Laura Hild
Browse files

Symphony: defer work to after filtering

parent 988abad2
No related merge requests found
......@@ -490,20 +490,20 @@ class Symphony extends AbstractBase implements ServiceLocatorAwareInterface
foreach ($callInfos as $callInfo) {
$libraryID = $callInfo->libraryID;
$library = $this->translatePolicyID('LIBR', $libraryID);
if ($this->libraryIsFilteredOut($libraryID)) {
continue;
}
$copyNumber = 0; // ItemInfo does not include copy numbers,
// so we generate them under the assumption
// that items are being listed in order.
if (!isset($callInfo->ItemInfo)) {
continue; // no items!
}
$library = $this->translatePolicyID('LIBR', $libraryID);
$copyNumber = 0; // ItemInfo does not include copy numbers,
// so we generate them under the assumption
// that items are being listed in order.
$itemInfos = is_array($callInfo->ItemInfo)
? $callInfo->ItemInfo
: array($callInfo->ItemInfo);
......
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