Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b23149d

Browse files
committed
[ProductAttributeValue] Fix removing attribute values from product
1 parent 0f44151 commit b23149d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

features/product/managing_products/adding_product_with_text_attribute.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Feature: Adding a new product with text attribute
3636
And attribute "Gun caliber" of product "44 Magnum" should be "11 mm"
3737
And attribute "Overall length" of product "44 Magnum" should be "30.5 cm"
3838

39-
@ui @javascript @todo
39+
@ui @javascript
4040
Scenario: Adding and removing text attributes on product create page
4141
Given I want to create a new simple product
4242
When I specify its code as "44_MAGNUM"

features/product/managing_products/adding_text_attributes_to_existing_product.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Feature: Adding attributes to an existing product
2828
And attribute "Gun caliber" of product "44 Magnum" should be "11 mm"
2929
And attribute "Overall length" of product "44 Magnum" should be "30.5 cm"
3030

31-
@ui @javascript @todo
31+
@ui @javascript
3232
Scenario: Adding and removing text attributes on product update page
3333
When I want to modify the "44 Magnum" product
3434
And I set its "Overall length" attribute to "30.5 cm" in "English (United States)"
@@ -37,7 +37,7 @@ Feature: Adding attributes to an existing product
3737
Then I should be notified that it has been successfully edited
3838
And product "44 Magnum" should not have a "Overall length" attribute
3939

40-
@ui @javascript @todo
40+
@ui @javascript
4141
Scenario: Adding and removing after saving text attributes on product update page
4242
Given this product has text attribute "Gun caliber" with value "11 mm" in "English (United States)" locale
4343
When I want to modify the "44 Magnum" product

src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-product-attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
}
4444

4545
function modifyAttributesListOnSelectorElementDelete(removedValue) {
46-
$('#attributesContainer > .attribute[data-id="'+removedValue+'"]').remove();
46+
$('#attributesContainer .attribute[data-id="'+removedValue+'"]').remove();
4747
}
4848

4949
function modifySelectorOnAttributesListElementDelete() {

0 commit comments

Comments
 (0)