Problem/Motivation

I installed this module and created a contact form. At first it worked ok, but then I realized the contact form disappear.

The problem was I created a personal contact block instead of the site wide contact block. I was expecting to see the site wide contact block instead of the personal by default.

Searching through the code I found that by default 'personal' is the selected option when creating new Contact Block, I think this default should be instead the 'selected' contact form defined at admin/structure/contact.

Proposed resolution

Change 'personal' in defaultConfiguration to the default contact form defined at admin/structure/contact.

Comments

dagmar created an issue. See original summary.

dagmar’s picture

Status: Active » Needs review
StatusFileSize
new972 bytes

Here is the patch.

sutharsan’s picture

Status: Needs review » Needs work

Very good solution, I like it. But I like to see a Dependency Injection for loading the configuration service here.

dagmar’s picture

Status: Needs work » Needs review
StatusFileSize
new1.63 KB

Sure, nice catch.

dagmar’s picture

StatusFileSize
new1.63 KB
new599 bytes

Sorry, wrong patch.

sutharsan’s picture

Status: Needs review » Reviewed & tested by the community

@self: looks good. Need to test.

  • Sutharsan committed b215bc1 on 8.x-1.x authored by dagmar
    Issue #2712965 by dagmar: Use the selected contact form as default...
sutharsan’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, again.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.