Dismissing an alert on dashboard throws error

Created on 6 February 2024, 10 months ago
Updated 28 February 2024, 9 months ago

Problem/Motivation

When dismissing an alert on the dashboard , users with more than 4 digits throw an sql error,
error: SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect DOUBLE value: '7,015': DELETE FROM "editoria11y_dismissals" WHERE ("page_path" = :db_condition_placeholder_0) AND ("result_name" = :db_condition_placeholder_1) AND ("dismissal_status" = :db_condition_placeholder_2) AND ("uid" = :db_condition_placeholder_3);

Steps to reproduce

Go to admin/reports/editoria11y/dismissals, select an alert and check the Reset box. It will throw an error.

Proposed resolution


The UID that is configured in the view that gets passed from the controller should not be a comma separated value.

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Bugs

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024