Skip to content

Commit

Permalink
Add replace field
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Nguyen committed Sep 25, 2024
1 parent 6f6d7f8 commit 5627184
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions classes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ public static function plain_text_search(string $search, string $table,
$record->courseshortname ?? '',
$record->id,
$record->$columnname,
'',
]);
}
} else {
Expand Down Expand Up @@ -356,6 +357,7 @@ public static function regular_expression_search(string $search, string $table,
$record->courseshortname ?? '',
$record->id,
$match,
'',
]);
}
}
Expand Down
2 changes: 1 addition & 1 deletion cli/find.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@

// Show header.
if (!$options['summary']) {
fputcsv($fp, ['table', 'column', 'courseid', 'shortname', 'id', 'match']);
fputcsv($fp, ['table', 'column', 'courseid', 'shortname', 'id', 'match', 'replace']);
} else {
fputcsv($fp, ['table', 'column']);
}
Expand Down

0 comments on commit 5627184

Please sign in to comment.