File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/commercetools/testing Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1+ 8.1.1 (unreleased)
2+ ------------------
3+ - Fix publish action on mock backend; already published products got overwritten
4+
158.1.0 (2020-05-01)
26------------------
37- Added product publish and set prices actions on mock backend.
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ def _publish_product_action():
231231 def updater (self , obj : dict , action : types .ProductPublishAction ):
232232 new = copy .deepcopy (obj )
233233 # not implemented scopes right now.
234- if "staged" in new ["masterData" ]:
234+ if new ["masterData" ]. get ( "staged" ) :
235235 new ["masterData" ]["current" ] = new ["masterData" ]["staged" ]
236236 new ["masterData" ]["hasStagedChanges" ] = False
237237 new ["masterData" ]["published" ] = True
You can’t perform that action at this time.
0 commit comments