diff --git a/bitwarden_license/src/CommCore/Services/ProviderService.cs b/bitwarden_license/src/CommCore/Services/ProviderService.cs index 615f32bfc0..3471624a03 100644 --- a/bitwarden_license/src/CommCore/Services/ProviderService.cs +++ b/bitwarden_license/src/CommCore/Services/ProviderService.cs @@ -59,6 +59,7 @@ namespace Bit.CommCore.Services { Status = ProviderStatusType.Pending, Enabled = true, + UseEvents = true, }; await _providerRepository.CreateAsync(provider); diff --git a/src/Admin/Models/ProviderEditModel.cs b/src/Admin/Models/ProviderEditModel.cs index 3e21b1e325..7e2b0d6ae3 100644 --- a/src/Admin/Models/ProviderEditModel.cs +++ b/src/Admin/Models/ProviderEditModel.cs @@ -18,7 +18,6 @@ namespace Bit.Admin.Models BusinessName = provider.BusinessName; BillingEmail = provider.BillingEmail; Enabled = provider.Enabled; - UseEvents = provider.UseEvents; } public bool Enabled { get; set; } @@ -26,14 +25,12 @@ namespace Bit.Admin.Models public string BusinessName { get; set; } public string Name { get; set; } [Display(Name = "Events")] - public bool UseEvents { get; set; } public Provider ToProvider(Provider existingProvider) { existingProvider.Name = Name; existingProvider.BusinessName = BusinessName; existingProvider.BillingEmail = BillingEmail?.ToLowerInvariant()?.Trim(); - existingProvider.UseEvents = UseEvents; existingProvider.Enabled = Enabled; return existingProvider; } diff --git a/src/Admin/Views/Providers/Edit.cshtml b/src/Admin/Views/Providers/Edit.cshtml index 2802b23f9d..2e75614aaa 100644 --- a/src/Admin/Views/Providers/Edit.cshtml +++ b/src/Admin/Views/Providers/Edit.cshtml @@ -39,11 +39,6 @@ -