November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
one possible approach is when you update the Entry, you can have check like this (pseudo code)
if (!property.CultureSpecific && entry.Language != entry.MasterLanguage)
{
continue;
}
the check was added by me long ago because we had several cases when customers complained that the changes were not saved - turned out they were trying to update content in non master language.
Sure but I am updating via a PUT request in the REST Api ... I don't have the option to check the language as you are suggesting.
One idea that came to mind was to not include the non-master languages from the original GET request. For example, here is a small sample of the result I get from the GET request:
{
"IsActive": true,
"MetaFields": [
{
"Data": [
{
"Language": "en",
"Value": "Wheelchair"
},
{
"Language": "fr-FR",
"Value": ""
},
{
"Language": "de-DE",
"Value": ""
},
{
"Language": "en-CA",
"Value": ""
}
],
"Name": "WebCategory",
"Type": "ShortString"
}
I've tried updating with the PUT request and remoing the non-master languages as follow:
{
"IsActive": true,
"MetaFields": [
{
"Data": [
{
"Language": "en",
"Value": "Wheelchair UPDATED"
}
],
"Name": "WebCategory",
"Type": "ShortString"
}
But I still get the warning Non culture-specific property ProductType is changed in language fr-FR
You are right. I checked ServiceAPI code and it seems it will try to update those non specific properties in non master language. I created bug COM-17457 to address that. I will try to submit a fix to the commerce team but there is currently no work around available I'm afraid.
Just curious, when will I see COM-17457 appear in the bug list? https://world.optimizely.com/support/Bug-list/bug/COM-17457
We are trying to update an Entry with several properties of which some are CultureSpecific and others are not.
Basically we take the following steps to update an Entry:
But if you look at the json result of the GET endpoint, ALL MetaFields are returned with ALL languages whether or not the value they represent is CultureSpecific or not.
Once we try updating the Entry, we get several warnings for non-CultureSpecific fields like the following:
We have 12 languages in the application in question, so we are getting A LOT of these warnings.
Is there any way to avoid this warning?
Thanks for any help/tips!
Stephen