You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found an issue in the NopTabsTagHelper class. You can no longer add a class attribute to a tab. The application returns an error InvalidOperationException: The collection already contains an entry with key 'class'.
That's due to the fact that you've added the followin line in the NopTabsTagHelper.cs line 263:
tabTitle.AddCssClass("nav-item");
and after that on line 284 you do this:
if (context.AllAttributes.ContainsName("class"))
tabTitle.Attributes.Add("class", context.AllAttributes["class"].Value.ToString());
However, there is already a class key in the dictionary which results in the error mentioned above.
nopCommerce version: 4.40 develop
Found an issue in the NopTabsTagHelper class. You can no longer add a class attribute to a tab. The application returns an error InvalidOperationException: The collection already contains an entry with key 'class'.
That's due to the fact that you've added the followin line in the NopTabsTagHelper.cs line 263:
tabTitle.AddCssClass("nav-item");
and after that on line 284 you do this:
if (context.AllAttributes.ContainsName("class"))
tabTitle.Attributes.Add("class", context.AllAttributes["class"].Value.ToString());
However, there is already a class key in the dictionary which results in the error mentioned above.
Source: https://www.nopcommerce.com/en/boards/topic/90152/nopcommerce-440-bug-fixes-and-improvements/page/2#280810
The text was updated successfully, but these errors were encountered: