File tree 3 files changed +8
-1
lines changed
src/Our.Umbraco.CopyVariant
App_Plugins/Our.Umbraco.CopyVariant
3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 50
50
vm . properties . push ( {
51
51
alias : property . alias ,
52
52
name : property . label ,
53
+ isDisabled : property . editor === "Umbraco.NestedContent" || property . editor === "Umbraco.BlockList" ,
53
54
copy : false ,
54
55
} ) ;
55
56
}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ <h5>Copy..</h5>
15
15
< div class ="umb-checkboxlist ">
16
16
< ul class ="unstyled ">
17
17
< li ng-repeat ="item in vm.properties track by item.alias ">
18
- < umb-checkbox name ="paroperty " value ="{{::item.alias}} " model ="item.copy " text ="{{::item.name}} "> </ umb-checkbox >
18
+ < umb-checkbox disabled =" item.isDisabled " name ="paroperty " value ="{{::item.alias}} " model ="item.copy " text ="{{::item.name}} "> </ umb-checkbox >
19
19
</ li >
20
20
</ ul >
21
21
</ div >
Original file line number Diff line number Diff line change @@ -51,8 +51,14 @@ public bool CopyCulture(CopyCulture model)
51
51
Services . ContentService . Save ( content ) ;
52
52
}
53
53
54
+ var complexProperty = new string [ ] {
55
+ global ::Umbraco . Core . Constants . PropertyEditors . Aliases . NestedContent ,
56
+ global ::Umbraco . Core . Constants . PropertyEditors . Aliases . BlockList
57
+ } ;
58
+
54
59
foreach ( var property in content . Properties . Where ( x =>
55
60
x . PropertyType . VariesByCulture ( ) &&
61
+ ! complexProperty . Contains ( x . PropertyType . Alias ) &&
56
62
( model . Properties . Any ( ) && model . Properties . Contains ( x . Alias ) )
57
63
) )
58
64
{
You can’t perform that action at this time.
0 commit comments