Skip to content

Commit

Permalink
#1703: The deleted tags are not removed from Tags drop-down until the…
Browse files Browse the repository at this point in the history
… web page is refreshed - covered MFTF test
  • Loading branch information
yolouiese committed Aug 11, 2020
1 parent 7e34bc9 commit 0f9189e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@
<actionGroup ref="AdminEnhancedMediaGalleryImageDetailsSaveActionGroup" stepKey="saveImage">
<argument name="image" value="UpdatedImageDetails"/>
</actionGroup>
<actionGroup ref="AssertImageAttributesOnEnhancedMediaGalleryActionGroup" stepKey="verifyUpdateImageOnTheGrid">
<argument name="image" value="UpdatedImageDetails"/>
</actionGroup>
<actionGroup ref="AdminEnhancedMediaGalleryVerifyImageDetailsActionGroup" stepKey="verifyImageDetails">
<argument name="image" value="UpdatedImageDetails"/>
</actionGroup>
<actionGroup ref="AdminEnhancedMediaGalleryVerifyImageKeywordsActionGroup" stepKey="verifyAddedKeywords">
<argument name="keywords" value="UpdatedImageDetails.keyword"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ define([
this.closeModal();
this.imageModel().reloadGrid();
imageDetails.removeCached(imageId);
imageEditDetails.removeCached(imageId, keywords);
imageEditDetails.removeCached(imageId);

if (imageDetails.isActive()) {
imageDetails.showImageDetailsById(imageId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,9 @@ define([
* Remove cached image details in edit form
*
* @param {String} id
* @param {String} tags
*/
removeCached: function (id, tags) {
this.images[id].tags = tags;
removeCached: function (id) {
delete this.images[id];
}
});
});

0 comments on commit 0f9189e

Please sign in to comment.