Skip to content

Commit

Permalink
issue #887: replace removed get_all_user_name_fields
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriim committed Jan 9, 2025
1 parent badc0de commit 18a0846
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions runs.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,13 @@

// Configure any table specifics.
$table = new runs_table('dataflow_runs_table');
$ufields = \core_user\fields::for_name()->get_sql('usr', false, '', '', false)->selects;

$sqlfields = 'run.id,'
// Cast the name as a real number so it can be correctly sorted.
. $DB->sql_cast_char2real('run.name') . ' as name,'
// Fetch user name fields (for display purposes).
. get_all_user_name_fields(
$returnsql = true,
$tableprefix = 'usr',
$prefix = null,
$fieldprefix = null,
$order = false
) . ',
. $ufields . ',
run.dataflowid,
run.userid,
run.status,
Expand Down

0 comments on commit 18a0846

Please sign in to comment.