MDL-73112 reportbuilder: improve handling of concatenated columns.
This change overcomes limitations in certain DB engines (such as MySQL[1]) which can lead to truncation of data when applying group concatenation to columns. Ensure we account for that by validating that we are able to extract the expected number of fields from each concatenated value. [1] https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_group_concat_max_len
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
import Notification from 'core/notification';
|
||||
import * as reportEvents from 'core_reportbuilder/local/events';
|
||||
import * as reportSelectors from 'core_reportbuilder/local/selectors';
|
||||
import {setPageNumber, refreshTableContent} from 'core_table/dynamic';
|
||||
@@ -58,7 +59,8 @@ export const init = () => {
|
||||
const pageNumber = event.detail?.preservePagination ? null : 1;
|
||||
|
||||
await setPageNumber(tableRoot, pageNumber, false)
|
||||
.then(refreshTableContent);
|
||||
.then(refreshTableContent)
|
||||
.catch(Notification.exception);
|
||||
});
|
||||
|
||||
// Listen for trigger popup events.
|
||||
|
||||
Reference in New Issue
Block a user