Mantis #47008 Prevent writing null to xml for non required fields#10510
Mantis #47008 Prevent writing null to xml for non required fields#10510laurinoetterli wants to merge 2 commits intoILIAS-eLearning:release_9from
Conversation
|
Hi @laurinoetterli, please look at our documentation. If this is a bug fix, we need a Mantis issue link. Otherwise this is an improvement, and then other rules apply. |
|
Hi @GitHamo , we leave it up to you how to proceed with this PR. As @dsstrassner mentioned above, bugfixes usually need a corresponding Mantis issue. Best regards, |
|
Hey everyone, I have created a Mantis ticket for the issue and added the PR to it. Please update the PR info and let me know if the ticket description is invalid. Now, since this is only for @laurinoetterli Thank you for your contributions. |
In some cases(if a user was deleted) these fields also might be null.
|
After some more testing i have found, that the login, firstname and lastname fields also might be null if the user was deleted. |
If any not required field contains null, this throws an exception. It is fixed by writing a default value to the xml if it is null.