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

CRM_Admin_Form - Support standalone forms #24770

Merged
merged 1 commit into from
Oct 22, 2022

Conversation

colemanw
Copy link
Member

Overview

This allows Admin forms to be placed at their own url without any refactoring.

Before

Preprocess function only works if form is embedded in a page.

After

Works either way

Technical Details

This type of form was traditionally embedded in a page, with values like _id and _action set() by the page controller.

This type of form was traditionally embedded in a page, with values like _id and _action
`set()` by the page controller.

This allows Admin forms to be placed at their own url without any refactoring.
@civibot
Copy link

civibot bot commented Oct 19, 2022

(Standard links)

@civibot civibot bot added the master label Oct 19, 2022
@seamuslee001 seamuslee001 added the merge ready PR will be merged after a few days if there are no objections label Oct 21, 2022
@seamuslee001
Copy link
Contributor

flagged as merge ready as code seems fine just needs an r-run

@demeritcowboy demeritcowboy merged commit f38d390 into civicrm:master Oct 22, 2022
@demeritcowboy
Copy link
Contributor

I was thinking extensions that extend CRM_Admin_Form might have to make some modifications but it seems ok as-is.

@colemanw colemanw deleted the adminForm branch October 23, 2022 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master merge ready PR will be merged after a few days if there are no objections
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants