File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1530,11 +1530,15 @@ public function createOrUpdateDocuments(
15301530 $ stmtAddPermissions ->execute ();
15311531 }
15321532
1533- $ internalIds = $ this ->getInternalIds ($ collection , $ documentIds , $ documentTenants );
1533+ $ internalIds = $ this ->getInternalIds (
1534+ $ collection ,
1535+ $ documentIds ,
1536+ $ documentTenants
1537+ );
15341538
1535- foreach ($ changes as $ document ) {
1536- if (isset ($ internalIds [$ document ->getNew ()->getId ()])) {
1537- $ document ->getNew ()->setAttribute ('$internalId ' , $ internalIds [$ document ->getNew ()->getId ()]);
1539+ foreach ($ changes as $ change ) {
1540+ if (isset ($ internalIds [$ change ->getNew ()->getId ()])) {
1541+ $ change ->getNew ()->setAttribute ('$internalId ' , $ internalIds [$ change ->getNew ()->getId ()]);
15381542 }
15391543 }
15401544 } catch (PDOException $ e ) {
You can’t perform that action at this time.
0 commit comments