mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +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 */
|
/* Status */
|
||||||
img = '<?php echo html_print_image('images/star.png', true, ['title' => __('Unknown'), 'class' => 'forced-title']); ?>';
|
img = '<?php echo html_print_image('images/star.png', true, ['title' => __('Unknown'), 'class' => 'forced-title']); ?>';
|
||||||
|
state = '0';
|
||||||
switch (item.estado) {
|
switch (item.estado) {
|
||||||
case "<?php echo EVENT_STATUS_NEW; ?>":
|
case "<?php echo EVENT_STATUS_NEW; ?>":
|
||||||
img = '<?php echo html_print_image('images/star.png', true, ['title' => __('New event'), 'class' => 'forced-title']); ?>';
|
img = '<?php echo html_print_image('images/star.png', true, ['title' => __('New event'), 'class' => 'forced-title']); ?>';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "<?php echo EVENT_STATUS_VALIDATED; ?>":
|
case "<?php echo EVENT_STATUS_VALIDATED; ?>":
|
||||||
|
|
||||||
|
state = '1';
|
||||||
img = '<?php echo html_print_image('images/tick.png', true, [ 'title' => __('Event validated'), 'class' => 'forced-title']); ?>';
|
img = '<?php echo html_print_image('images/tick.png', true, [ 'title' => __('Event validated'), 'class' => 'forced-title']); ?>';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "<?php echo EVENT_STATUS_INPROCESS; ?>":
|
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']); ?>';
|
img = '<?php echo html_print_image('images/hourglass.png', true, [ 'title' => __('Event in process'), 'class' => 'forced-title']); ?>';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1991,6 +1996,9 @@ function process_datatables_item(item) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
item.estado = '<div>';
|
item.estado = '<div>';
|
||||||
|
item.estado += '<span style="display: none">';
|
||||||
|
item.estado += state;
|
||||||
|
item.estado += '</span>';
|
||||||
item.estado += img;
|
item.estado += img;
|
||||||
item.estado += '</div>';
|
item.estado += '</div>';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user