Commit b65c12e
committed
Do an empty check instead of isset check on image removed
In some cases the 'removed' tag on the image is already set to an empty
string in the data which will be loaded. Therefore the isset check fails
which clears the image roles.
On all other cases where this 'removed' tag is being validated with an
empty or !empty. Therefor it seems safe to apply this here also.1 parent 93f21ca commit b65c12e
File tree
1 file changed
+1
-1
lines changed- app/code/Magento/Catalog/Model/ProductRepository
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
0 commit comments