We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f17156 commit dda69a1Copy full SHA for dda69a1
src/Umbraco.Web.UI.Client/src/packages/content/content/workspace/content-detail-workspace-base.ts
@@ -714,6 +714,10 @@ export abstract class UmbContentDetailWorkspaceContextBase<
714
*/
715
public async runMandatoryValidationForSaveData(saveData: DetailModelType, variantIds: Array<UmbVariantId> = []) {
716
// Check that the data is valid before we save it.
717
+ // If we vary by culture then we do not want to validate the invariant variant.
718
+ if (this.getVariesByCulture()) {
719
+ variantIds = variantIds.filter((variant) => !variant.isCultureInvariant());
720
+ }
721
const missingVariants = variantIds.filter((variant) => {
722
return !saveData.variants.some((y) => variant.compare(y));
723
});
0 commit comments