Skip to content

Commit

Permalink
[instrument_manager] Fixing error in generate_tables_sql_and_testName…
Browse files Browse the repository at this point in the history
…s tool (#9157)

The tools/generate_tables_sql_and_testNames.php script is causing an error when uploading a new instrument using the Instrument Manager module. Since the output string was being reset to empty within the for-loop, the "Create Table" statement was not properly generated.
  • Loading branch information
AlexandraLivadas committed Mar 26, 2024
1 parent c785f09 commit 591bac9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/generate_tables_sql_and_testNames.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
$parameterCount = 0;
$pages = [];
foreach ($instruments as $instrument) {
$catId = "";
$items = explode("\n", trim($instrument));
$catId = "";
$output = "";
$items = explode("\n", trim($instrument));
foreach ($items as $item) {
$paramId = "";
$output = "";
$bits = explode("{@}", trim($item));
if (preg_match("/Examiner[0-9]*/", $bits[1])) {
continue;
Expand Down

0 comments on commit 591bac9

Please # to comment.