Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed quick export to xls #17293

Open
wants to merge 1 commit into
base: developer
Choose a base branch
from

Conversation

konadrian
Copy link
Contributor

When you have a picklist with numbers 0,1,2,3 as values. Value 0 is represented as empty string

@konadrian konadrian added the ✔ finished This pull request has been finished. label Oct 3, 2023
@@ -153,7 +153,7 @@ public function putDataIntoSpreadsheet(Vtiger_Field_Model $fieldModel, $value, i
}
break;
default:
$displayValue = $this->getDisplayValue($fieldModel, $value, $id, []) ?: '';
$displayValue = $this->getDisplayValue($fieldModel, $value, $id, []);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$displayValue = $this->getDisplayValue($fieldModel, $value, $id, []) ?? '';
or cast to string or both

@rskrzypczak rskrzypczak added 🔧 AmendmentsRequired This pull request requires some amendments in order to be merged. and removed ✔ finished This pull request has been finished. labels Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 AmendmentsRequired This pull request requires some amendments in order to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants