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

pac paportal download does not set previously populated fields to null #681

Open
Zwuai opened this issue Aug 24, 2023 · 0 comments
Open
Labels
paportal Pertains to Power Pages

Comments

@Zwuai
Copy link

Zwuai commented Aug 24, 2023

This issue is occurring when running CLI Version: 1.26.5+g670cdf9 via VS Code.

When pac paportal downloading a web page that used to have an adx_webform set but is now null, the key value pair is removed from the yaml file, so when deployed to other environments using pac paportal upload, the value in those environments is not cleared. A workaround we have been doing is when clearing a value from a web page and downloading the yaml, readding the key value pair and setting it to null. These fields not being cleared results in an error when viewing these pages as two copies of the same webform are trying to be rendered. This is because the Basic Form field in the environment had not been cleared, but the new code to render the basic form using liquid was also present.

A solution to this would be to keep the key value pairs in the yaml but set them to null when null in the source environment.

@tehcrashxor tehcrashxor added the paportal Pertains to Power Pages label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
paportal Pertains to Power Pages
Projects
None yet
Development

No branches or pull requests

2 participants