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

EZP-29096: Do not store empty draft values in DB #1417

Merged
merged 12 commits into from
Mar 11, 2019
Merged
Prev Previous commit
Next Next commit
Update kernel/classes/datatypes/ezuser/ezusertype.php
Co-Authored-By: pkamps <pkamps@mugo.ca>
glye and pkamps authored Jan 22, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 2d418d3f7157b362b14dfd7cb27093984a92480c
2 changes: 1 addition & 1 deletion kernel/classes/datatypes/ezuser/ezusertype.php
Original file line number Diff line number Diff line change
@@ -258,7 +258,7 @@ function storeObjectAttribute( $contentObjectAttribute )
}

// saving information in the object attribute data_text field to simulate a draft
if( $user->Login )
if ( $user->Login )
{
$contentObjectAttribute->setAttribute( 'data_text', $this->serializeDraft( $user ) );
}