mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Merge branch 'MDL-75811' of https://github.com/paulholden/moodle
This commit is contained in:
commit
6eb67954f3
@ -138,6 +138,7 @@ class groupconcat extends base {
|
||||
$formattedvalues[] = parent::format_value($originalvalue, $originalvalues, $callbacks, $columntype);
|
||||
}
|
||||
|
||||
return implode(', ', $formattedvalues);
|
||||
$listseparator = get_string('listsep', 'langconfig') . ' ';
|
||||
return implode($listseparator, $formattedvalues);
|
||||
}
|
||||
}
|
||||
|
@ -117,6 +117,27 @@ Feature: Manage custom report columns aggregation
|
||||
| Average | 0,7 |
|
||||
| Percentage | 66,7% |
|
||||
|
||||
Scenario Outline: Aggregated columns display localised list separators
|
||||
Given the following "language customisations" exist:
|
||||
| component | stringid | value |
|
||||
| core_langconfig | listsep | ; |
|
||||
And the following "core_reportbuilder > Reports" exist:
|
||||
| name | source | default |
|
||||
| My report | core_user\reportbuilder\datasource\users | 0 |
|
||||
And the following "core_reportbuilder > Columns" exist:
|
||||
| report | uniqueidentifier |
|
||||
| My report | user:lastname |
|
||||
| My report | user:firstname |
|
||||
And I am on the "My report" "reportbuilder > Editor" page logged in as "admin"
|
||||
And I change window size to "large"
|
||||
When I set the "First name" column aggregation to "<aggregation>"
|
||||
Then I should see "Aggregated column 'First name'"
|
||||
And I should see "<output>" in the "Richie" "table_row"
|
||||
Examples:
|
||||
| aggregation | output |
|
||||
| Comma separated distinct values | Ben; Bill |
|
||||
| Comma separated values | Ben; Bill; Bill |
|
||||
|
||||
Scenario: Show unique report rows
|
||||
Given the following "core_reportbuilder > Reports" exist:
|
||||
| name | source | default | uniquerows |
|
||||
|
Loading…
x
Reference in New Issue
Block a user