Details
- 
    Type:Bug 
- 
    Status: Closed
- 
    Priority:Major 
- 
    Resolution: Fixed
- 
    Affects Version/s: 2.1.0, 2.2.0
- 
    Component/s: manager client
- 
    Labels:None
Description
When remove product attribute value on attribute tab:
RangeError: Index '-1' specified is out of bounds.
	at mx.collections::ListCollectionView/removeItemAt()
	at org.yes.cart.ui.product::ProductAttributesPanel/onValueDelete()[D:\Work\Projects\yc-v2br-idea\manager\client\src\main\flex\org\yes\cart\ui\product\ProductAttributesPanel.mxml:90]
	at org.yes.cart.ui.attributes::EntityAttributeValuesManagementPanel/onRemoveAttributeValueConfirm()[D:\Work\Projects\yc-v2br-idea\manager\client\src\main\flex\org\yes\cart\ui\attributes\EntityAttributeValuesManagementPanel.mxml:210]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.core::UIComponent/dispatchEvent()
	at mx.controls.alertClasses::AlertForm/removeAlert()
	at mx.controls.alertClasses::AlertForm/clickHandler()
If select another product on attribute tab selected error pops up:
RangeError: Index '-1' specified is out of bounds.
	at mx.collections::ArrayList/removeItemAt()
	at mx.collections::ListCollectionView/removeItemAt()
	at mx.collections::ListCollectionView/removeAll()
	at org.yes.cart.ui.product::ProductAttributesPanel/set product()[D:\Work\Projects\yc-v2br-idea\manager\client\src\main\flex\org\yes\cart\ui\product\ProductAttributesPanel.mxml:52]
	at org.yes.cart.ui.product::ProductManagementPanel/attrTabSelected()[D:\Work\Projects\yc-v2br-idea\manager\client\src\main\flex\org\yes\cart\ui\product\ProductManagementPanel.mxml:373]
	at org.yes.cart.ui.product::ProductManagementPanel/initTab()[D:\Work\Projects\yc-v2br-idea\manager\client\src\main\flex\org\yes\cart\ui\product\ProductManagementPanel.mxml:322]
	at org.yes.cart.ui.product::ProductManagementPanel/onProductSelected()[D:\Work\Projects\yc-v2br-idea\manager\client\src\main\flex\org\yes\cart\ui\product\ProductManagementPanel.mxml:241]
	at org.yes.cart.ui.product::ProductManagementPanel/__productGrid_itemClick()[D:\Work\Projects\yc-v2br-idea\manager\client\src\main\flex\org\yes\cart\ui\product\ProductManagementPanel.mxml:71]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()