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

Fix EZP-26168: User profile edits break change password #1253

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

Conversation

paulborgermans
Copy link
Contributor

... and forgot password functionality

See also https://jira.ez.no/browse/EZP-26168

To correct existing records, the contentobject_attribute table needs to be cleared for historical draft data in the data_text column for published objects, for example:

  1. View those affected records:
SELECT ezco.id, ezcoa.data_text FROM ezcontentobject ezco, ezcontentobject_attribute ezcoa 
WHERE ezco.id=ezcoa.contentobject_id
 AND ezcoa.data_text <> '' 
 AND ezcoa.data_type_string = 'ezuser' and ezco.status=1;
  1. Clear affected records
UPDATE ezcontentobject ezco, ezcontentobject_attribute ezcoa SET ezcoa.data_text='' 
WHERE ezco.id=ezcoa.contentobject_id 
 AND ezcoa.data_text <> '' 
 AND ezcoa.data_type_string = 'ezuser' and ezco.status=1;

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

Successfully merging this pull request may close these issues.

1 participant