From 588760b57d543c48398d2f09420ee7ac90c73374 Mon Sep 17 00:00:00 2001 From: Seth Shaw Date: Tue, 28 Sep 2021 08:05:14 -0700 Subject: [PATCH] Issues 1888 & 1886: fix broken islandora_core_feature_update_8001 (#850) * fix broken islandora_core_feature_update_8001 * issue-1886: fix undefined variable fixes https://github.com/Islandora/documentation/issues/1888 and fixes https://github.com/Islandora/documentation/issues/1886 --- modules/islandora_core_feature/islandora_core_feature.install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/islandora_core_feature/islandora_core_feature.install b/modules/islandora_core_feature/islandora_core_feature.install index a8e23d3c..eabd5672 100644 --- a/modules/islandora_core_feature/islandora_core_feature.install +++ b/modules/islandora_core_feature/islandora_core_feature.install @@ -114,7 +114,7 @@ function islandora_core_feature_update_8001(&$sandbox) { ->orderBy('o.entity_id', 'ASC') ->orderBy('o.revision_id', 'ASC') ->orderBy('o.delta', 'ASC') - ->range($sandbox['progress'], $sandbox['progress'] + $limit); + ->range($sandbox['progress'], $limit); $database->insert($table)->from($query)->execute(); } } @@ -125,7 +125,7 @@ function islandora_core_feature_update_8001(&$sandbox) { // Clean up. foreach ($tables as $table) { $database->schema()->dropTable($table . '_o'); - if ($sandbox['progress'] + $limit >= $progress[$table]['size']) { + if ($sandbox['progress'] + $limit >= $sandbox[$table]['size']) { $sandbox[$table]['done'] = TRUE; } }