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 issue #19404: unable to export survey with PHP 8.0 #3845

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

Conversation

Shnoulle
Copy link
Collaborator

Dev: don't include @attributes array in xml exported
Dev: loose attributes, but are unused in case of survey export

Dev: don't include @attributes array in xml exported
Dev: loose attributes, but are unused in case of survey export
@@ -3144,6 +3144,11 @@ function writeXmlFromArray(XMLWriter $xml, $aData, $sParentKey = '')
{
$bCloseElement = false;
foreach ($aData as $key => $value) {
if ($key == "@attributes") {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this the right place for this filter?
This function is a writer. Should also have the logic for filtering the sources?

Maybe here better fit?
https://github.com/LimeSurvey/LimeSurvey/pull/3845/files#diff-1aecd900cde469d4c2ba64ab989062a075ed3ff9378180051d812b127a929dfeR3205

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Is this the right place for this filter?

I don't know :)

You're right about the place it was added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants