File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
src/Libraries/SmartStore.Data/Migrations Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
- # Release Notes
1
+ # Release Notes
2
2
3
3
## SmartStore.NET 3.1.5
4
4
### New Features
16
16
* Moved StoreLastIpAddress & DisplayPrivacyAgreementOnContactUs from customer settings to privacy settings tab
17
17
* #1450 Show the regular price only if it's higher than the final price
18
18
* #1450 Do not ignore discounts with a negative amount
19
+ * Set catalogsettings.showsharebutton to false as its not compliant with GDPR
19
20
20
21
### Bugfixes
21
22
* Migration: take all same-named message templates into account
Original file line number Diff line number Diff line change 10
10
using Core . Domain . Configuration ;
11
11
using SmartStore . Core . Domain . Customers ;
12
12
using SmartStore . Core . Domain . Seo ;
13
+ using SmartStore . Core . Domain . Catalog ;
13
14
14
15
public sealed class MigrationsConfiguration : DbMigrationsConfiguration < SmartObjectContext >
15
16
{
@@ -47,6 +48,13 @@ public void MigrateSettings(SmartObjectContext context)
47
48
var displayPrivacyAgreementOnContactUs = settings . FirstOrDefault ( x => x . Name == "CustomerSettings.DisplayPrivacyAgreementOnContactUs" ) ;
48
49
if ( displayPrivacyAgreementOnContactUs != null ) settings . Remove ( displayPrivacyAgreementOnContactUs ) ;
49
50
51
+
52
+ var showShareButtonName = TypeHelper . NameOf < CatalogSettings > ( y => y . ShowShareButton , true ) ;
53
+ var showShareButtonSetting = context . Set < Setting > ( ) . FirstOrDefault ( x => x . Name == showShareButtonName ) ;
54
+ if ( showShareButtonSetting != null )
55
+ {
56
+ showShareButtonSetting . Value = "False" ;
57
+ }
50
58
}
51
59
52
60
public void MigrateLocaleResources ( LocaleResourcesBuilder builder )
You can’t perform that action at this time.
0 commit comments