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

12656: prepopulate applicant form on landuse-form from pas-form #886

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

trbmcginnis
Copy link
Contributor

@trbmcginnis trbmcginnis commented Nov 19, 2020

Summary
Pre-populate the applicants section on the Land Use Form from data that was saved on the Pas Form.

When the user loads the Land Use Form, they should see all the applicants that they previously entered on the Pas Form.

Task/Bug Number
Fixes AB#12656

Technical Explanation
When a user loads the landuse-form, we grab the _dcp_project_value from the current landuse-form. We use this value to find the pas-form that is associated with that project. We check for whether the applicants on the landuse-form have matching emails with those on the pas-form. If these are matching, we do not run crmService.update. If they do not match, then we use crmService.update to associate the applicant with the landuse-form using @odata.bind. This should make these already-created applicants now show up on the landuse-form when the user loads the page.

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.

1 participant