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 storing external data for Legacy storage engine #235

Merged
merged 2 commits into from Mar 4, 2013
Merged

Conversation

pspanja
Copy link
Contributor

@pspanja pspanja commented Feb 19, 2013

This PR fixes storing external data for Legacy storage engine.

Some field type require that external data is copied in all cases.
This was not done when creating existing fields in new version, where data was copied only for non-translatable fields in non-main language.

{
$fieldsToCopy[$fieldDefinition->id][$languageCode] =
$contentFieldMap[$fieldDefinition->id][$content->versionInfo->contentInfo->mainLanguageCode];
$createInNewLanguageCode = $languageCode;
Copy link
Member

Choose a reason for hiding this comment

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

Hmmm, what is $createInNewLanguageCode supposed to be for exactly ? I can see it used in the next foreach block, but I'm still a bit confused.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is used on the same level, when calling createExistingFieldInNewVersion(). Used for creating non-translatable field in non-main language, from the field in main language.

Copy link
Member

Choose a reason for hiding this comment

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

Haaan I had not seen the two foreaches merged into ones. My bad :-)

@andrerom
Copy link
Contributor

+1, @bdunogier your ok with this?

@bdunogier
Copy link
Member

Yes, I am. It really needs to go in, maintaining my own PR is becoming a nightmare.

andrerom added a commit that referenced this pull request Mar 4, 2013
Fix storing external data for Legacy storage engine
@andrerom andrerom merged commit ae5fbd3 into master Mar 4, 2013
@andrerom andrerom deleted the EZP-19884-FIX branch March 4, 2013 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants