Skip to content

Commit

Permalink
Remove criterion template header from upgrade, these have no connecti…
Browse files Browse the repository at this point in the history
…on to the vb instance.
  • Loading branch information
srobotta committed Dec 4, 2024
1 parent 8590c4d commit 94c3e37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,11 @@ function add_instance_to_localized_string() {
foreach ($results as $result) {
$DB->execute(
sprintf('UPDATE {%s} SET instanceid = ?
WHERE foreignkey = ? AND typeid IN (?, ?)', tables::LOCALIZED_STRING_TABLE),
WHERE foreignkey = ? AND typeid = ?', tables::LOCALIZED_STRING_TABLE),
[
$result->instanceid,
$result->id,
localized_string_type::str2id(localized_string_type::INSTANCE_CRITERION),
localized_string_type::str2id(localized_string_type::TEMPLATE_CRITERION),
]
);
}
Expand Down

0 comments on commit 94c3e37

Please sign in to comment.