mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
Merge branch 'ent-6554-status-vacio-al-exportar-eventos-a-csv' into 'develop'
fixed error with value status field See merge request artica/pandorafms!3548
This commit is contained in:
commit
12b36e7f5a
@ -1950,16 +1950,21 @@ function process_datatables_item(item) {
|
||||
|
||||
/* Status */
|
||||
img = '<?php echo html_print_image('images/star.png', true, ['title' => __('Unknown'), 'class' => 'forced-title']); ?>';
|
||||
state = '0';
|
||||
switch (item.estado) {
|
||||
case "<?php echo EVENT_STATUS_NEW; ?>":
|
||||
img = '<?php echo html_print_image('images/star.png', true, ['title' => __('New event'), 'class' => 'forced-title']); ?>';
|
||||
break;
|
||||
|
||||
case "<?php echo EVENT_STATUS_VALIDATED; ?>":
|
||||
|
||||
state = '1';
|
||||
img = '<?php echo html_print_image('images/tick.png', true, [ 'title' => __('Event validated'), 'class' => 'forced-title']); ?>';
|
||||
break;
|
||||
|
||||
case "<?php echo EVENT_STATUS_INPROCESS; ?>":
|
||||
state = '2';
|
||||
|
||||
img = '<?php echo html_print_image('images/hourglass.png', true, [ 'title' => __('Event in process'), 'class' => 'forced-title']); ?>';
|
||||
break;
|
||||
}
|
||||
@ -1991,6 +1996,9 @@ function process_datatables_item(item) {
|
||||
}
|
||||
|
||||
item.estado = '<div>';
|
||||
item.estado += '<span style="display: none">';
|
||||
item.estado += state;
|
||||
item.estado += '</span>';
|
||||
item.estado += img;
|
||||
item.estado += '</div>';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user