Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #475 from treolabs/t-81504
Browse files Browse the repository at this point in the history
Ability to change product type, while product duplicating, should be blocked
  • Loading branch information
rratsun authored Feb 6, 2020
2 parents 0a2dfe6 + d5ed9ed commit e16ff5d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions app/Resources/metadata/clientDefs/Product.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,17 @@
"readOnly": {
"conditionGroup": [
{
"type": "isNotEmpty",
"attribute": "id"
"type": "or",
"value": [
{
"type": "isNotEmpty",
"attribute": "id"
},
{
"type": "isNotEmpty",
"attribute": "_duplicatingEntityId"
}
]
}
]
}
Expand Down

0 comments on commit e16ff5d

Please sign in to comment.