When this module is enabled, settings at /admin/config/system/site-information (for stuff like Site name, Slogan, Email address, etc. are not saved. The footer message is saved, though.

I'll attach a patch it a bit, but this change in footer_message.module fixed it for me.

-  $form['actions']['submit']['#submit'][] = 'footer_message_form_system_site_information_settings_submit';
+  $form['#submit'][] = 'footer_message_form_system_site_information_settings_submit';

I don't know why the existing handler attachment didn't work. I searched the web and found examples of both, but I couldn't find any official documentation for why we should prefer one over the other.

This fix works on Drupal 8.6.2. I haven't tested it on earlier versions, and I wonder if something in core changed since this module was released.

Comments

jeffam created an issue. See original summary.

jeffam’s picture

StatusFileSize
new484 bytes

Here's a patch.

patelmayank7552’s picture

Hi @jeffam and @andrew_tspkh,

I have applied the patch and checked it is allowing to save other values https://sitename/admin/config/system/site-information on this form.

And I have added the comment for submitting function called to save the settings.

Prefer the images for reference.

Creating a patch for coding standards to be followed.

patelmayank7552’s picture

Status: Needs review » Reviewed & tested by the community
andrew_tspkh’s picture

Thank you for a patch.

  • jeffam authored 90feb4d on 8.x-1.x
    Issue #3008391 by patelmayank7552, jeffam, andrew_tspkh: Site...
andrew_tspkh’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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