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

Ensure we put cultures in for null values, even when they are not there. #486

Merged
merged 1 commit into from Mar 29, 2023

Conversation

KevinJump
Copy link
Owner

Ensures that properties that are null but have culture values are consistently serialized.

When an item is saved in the backoffice, blank property values are present in the model, and so uSync Serializes them with the culture values .

 <title>
      <Value Culture="en-us"><![CDATA[English Title]]></Value>
  </title>

however when the object is retrieved from the Umbraco API these values are not set at all, previously we just added a null value but without the culutre.

this fix adds a null value for all available cultures in a node.

This will change some output of existing files - so should be a minor bump of version number.

@KevinJump KevinJump merged commit fb8243a into v11/dev Mar 29, 2023
1 check passed
@KevinJump KevinJump deleted the v11/multi-blanks branch March 29, 2023 07:44
KevinJump added a commit that referenced this pull request Mar 29, 2023
* Add RequiredAdmin to ISyncAdd on - so we can hide uSync tabs.

* Change to HideAddOns setting - simpler less dependencies.

* Fix: SignalR root missing on first install/upgrade (#482)

* Add support for Domain Sort order in v11.3 (#481)

* Add support for Domain Sort order in v11.3

* Clean the using statements for these two files.

* re-instate lookup by key value (used only in uSync.Complete). (#485)

* Ensure we put cultures in for null values, even when they are not there. (#486)

* Tidy: Comment warning fix.

* Add logging - to log when someone runs something.

* Update: Make sure we include blank cultures when only some values are set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant