Skip to content

Commit

Permalink
version update
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Nov 23, 2023
1 parent 9befaf6 commit 271205b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
moodle-branch: ['master']
moodle-branch: ['main']
php: ['8.1']
database: ['mysqli']

Expand Down
6 changes: 1 addition & 5 deletions classes/reportbuilder/local/entities/payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,7 @@ protected function get_all_columns(): array {
->add_field("{$tablealias}.amount")
->set_is_sortable(true)
->add_callback(function(?string $value): string {
if ($value === '') {
return '0';
}
$floa = floatval($value);
return number_format($floa, 2);
return ($value === '') ? '0' : number_format(floatval($value));
});

// Currency column.
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
$plugin->component = 'report_payments';
$plugin->maturity = MATURITY_STABLE;
$plugin->supported = [401, 403];
$plugin->release = 'v1.0.6';
$plugin->version = 2023101400;
$plugin->release = 'v4.1.1';
$plugin->version = 2023112300;

0 comments on commit 271205b

Please sign in to comment.