mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch 'ent-7368-filtro-de-comentarios-de-eventos' into 'develop'
fixed error with special charact filter in user commens See merge request artica/pandorafms!4056
This commit is contained in:
commit
00b1596c4f
@ -1092,8 +1092,15 @@ function events_get_all(
|
|||||||
|
|
||||||
// User comment.
|
// User comment.
|
||||||
if (!empty($filter['user_comment'])) {
|
if (!empty($filter['user_comment'])) {
|
||||||
|
// For filter field.
|
||||||
$sql_filters[] = sprintf(
|
$sql_filters[] = sprintf(
|
||||||
' AND lower(te.user_comment) like lower("%%%s%%") ',
|
' AND lower(te.user_comment) like lower("%%%s%%") ',
|
||||||
|
io_safe_input($filter['user_comment'])
|
||||||
|
);
|
||||||
|
|
||||||
|
// For show comments on event details.
|
||||||
|
$sql_filters[] = sprintf(
|
||||||
|
' OR lower(te.user_comment) like lower("%%%s%%") ',
|
||||||
$filter['user_comment']
|
$filter['user_comment']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user