Skip to content

Commit 444fdb4

Browse files
committed
Minor fix
1 parent 7a850b9 commit 444fdb4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
* Fixed several queries which caused problems with SQL CE
5656
* Fixed missing CurrencyCode exception in product exports
5757
* #1179 Error while downloading a downloadable product
58-
* Mega Menu: If a dropdown has contained 2 level hierarchy categories only they were not broken into the next column
58+
* Mega Menu: If a dropdown contains two level hierarchy categories only, they are not wrapped to the next column
5959
* Hide sort dropdown when option is off
6060
* HTTP 301 redirects for legacy media URLs
6161
* Added missing resources of broken migration 'AddressEnhancement' again

src/Libraries/SmartStore.Data/ObjectContextBase.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,7 @@ private static bool PropIsModified(DbPropertyEntry prop, bool detectChangesEnabl
314314
if (detectChangesEnabled && !propIsModified)
315315
return false; // Perf
316316

317-
object mergedValue;
318-
if (propIsModified && mergedProps != null && mergedProps.TryGetValue(prop.Name, out mergedValue))
317+
if (propIsModified && mergedProps != null && mergedProps.ContainsKey(prop.Name))
319318
{
320319
// EF "thinks" that prop has changed because merged value differs
321320
return false;

0 commit comments

Comments
 (0)