Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EWPP-131: Fix broken settings submit. #5

Merged
merged 2 commits into from
Nov 24, 2020
Merged

EWPP-131: Fix broken settings submit. #5

merged 2 commits into from
Nov 24, 2020

Conversation

drishu
Copy link
Contributor

@drishu drishu commented Nov 22, 2020

Add our submit function to the beginning of the list to give it a change to execute.

22Alexandra
22Alexandra previously approved these changes Nov 23, 2020
$form['#submit'] = ['_oe_corporate_site_info_settings_form_submit'];
// SiteInformationForm:submitForm calls the parent :submitForm,
// so we need to add our submit function to the beginning of the list
// to give it a change to execute.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// to give it a change to execute.
// to give it a chance to execute.

@@ -79,7 +79,10 @@ function oe_corporate_site_info_form_system_site_information_settings_alter(&$fo
'#description' => t('This is not the writer of the content, but the subject matter expert responsible for keeping this content up to date. <br>When this field is populated, it will provide the default Content owner for all new content on this website. It can be overwritten for every new item.'),
];

$form['#submit'] = ['_oe_corporate_site_info_settings_form_submit'];
// SiteInformationForm:submitForm calls the parent :submitForm,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// SiteInformationForm:submitForm calls the parent :submitForm,
// SiteInformationForm::submitForm calls the parent ::submitForm,

@ademarco ademarco merged commit 286226d into master Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants