|
374 | 374 | $usf_id = $report->headerData[$key]['id']; |
375 | 375 |
|
376 | 376 | if ($usf_id !== 0 |
377 | | - && in_array($getMode, array('csv', 'pdf'), true) |
| 377 | + && in_array($getMode, array('xlsx', 'csv', 'pdf'), true) |
378 | 378 | && $content > 0 |
379 | 379 | && ($gProfileFields->getPropertyById($usf_id, 'usf_type') == 'DROPDOWN' |
380 | 380 | || $gProfileFields->getPropertyById($usf_id, 'usf_type') == 'DROPDOWN_MULTISELECT' |
|
429 | 429 | || $gProfileFields->getPropertyById($usf_id, 'usf_type') === 'PHONE' |
430 | 430 | || $gProfileFields->getPropertyById($usf_id, 'usf_type') === 'URL')) { |
431 | 431 | $columnValues[] = $content; |
432 | | - } elseif ($getMode === 'xlsx' && $gProfileFields->getPropertyById($usf_id, 'usf_type') === 'CHECKBOX') { |
433 | | - $columnValues[] = ($content) ? 'X' : ''; |
| 432 | + } elseif ($getMode === 'xlsx' |
| 433 | + && ($gProfileFields->getPropertyById($usf_id, 'usf_type') == 'DROPDOWN' |
| 434 | + || $gProfileFields->getPropertyById($usf_id, 'usf_type') == 'DROPDOWN_MULTISELECT' |
| 435 | + || $gProfileFields->getPropertyById($usf_id, 'usf_type') == 'RADIO_BUTTON' |
| 436 | + || $gProfileFields->getPropertyById($usf_id, 'usf_type') === 'CHECKBOX')) { |
| 437 | + if ($gProfileFields->getPropertyById($usf_id, 'usf_type') === 'CHECKBOX') { |
| 438 | + $columnValues[] = ($content) ? 'X' : ''; |
| 439 | + } else { |
| 440 | + $columnValues[] = $content; |
| 441 | + } |
434 | 442 | } else { |
435 | 443 | // checkbox must set a sorting value |
436 | 444 | if ($gProfileFields->getPropertyById($usf_id, 'usf_type') === 'CHECKBOX') { |
|
0 commit comments