Merge branch 'ent-4898-No-funciona-filtro-de-eventos-cuando-el-idioma-del-usuario-está-en-catalán' into 'develop'
Fixed agent name and error lenght See merge request artica/pandorafms!2845
This commit is contained in:
commit
d460429509
|
@ -1539,7 +1539,7 @@ function process_datatables_callback(table, settings) {
|
||||||
// Agent id.
|
// Agent id.
|
||||||
target = i;
|
target = i;
|
||||||
}
|
}
|
||||||
if(label == '<?php echo __('Agent name'); ?>') {
|
if(label == '<?php echo addslashes(__('Agent name')); ?>') {
|
||||||
// Agent id.
|
// Agent id.
|
||||||
target = i;
|
target = i;
|
||||||
break;
|
break;
|
||||||
|
@ -1619,15 +1619,13 @@ function process_datatables_item(item) {
|
||||||
|
|
||||||
// Show comments events.
|
// Show comments events.
|
||||||
item.user_comment = item.comments
|
item.user_comment = item.comments
|
||||||
|
|
||||||
if(item.comments.length > 80){
|
|
||||||
|
|
||||||
item.user_comment += ' <a id="show_comments" href="javascript:" onclick="show_event_dialog(\'';
|
if(typeof item.comments !== 'undefined' && item.comments.length > 80) {
|
||||||
item.user_comment += item.b64+"','comments'," + $("#group_rep").val()+');">';
|
item.user_comment += ' <a id="show_comments" href="javascript:" onclick="show_event_dialog(\'';
|
||||||
item.user_comment += '<?php echo html_print_image('images/eye.png', true, ['title' => __('Show more')]); ?></a>';
|
item.user_comment += item.b64+"','comments'," + $("#group_rep").val()+');">';
|
||||||
|
item.user_comment += '<?php echo html_print_image('images/eye.png', true, ['title' => __('Show more')]); ?></a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Grouped events.
|
// Grouped events.
|
||||||
if(item.max_id_evento) {
|
if(item.max_id_evento) {
|
||||||
item.id_evento = item.max_id_evento
|
item.id_evento = item.max_id_evento
|
||||||
|
|
Loading…
Reference in New Issue