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

dev/core#3702 - <af-field> tags are not valid html (ALTERNATE) #24771

Merged
merged 1 commit into from
Oct 20, 2022

Conversation

demeritcowboy
Copy link
Contributor

Overview

https://lab.civicrm.org/dev/core/-/issues/3702

Alternate to #23917

Before

On dashboard, error DOMDocument::loadHTML(): Tag af-field invalid in Entity

After

Technical Details

See lab ticket for more details.

Comments

Unit test is at #23918

@civibot
Copy link

civibot bot commented Oct 19, 2022

(Standard links)

@civibot civibot bot added the master label Oct 19, 2022
@totten
Copy link
Member

totten commented Oct 20, 2022

Looks pretty good to me. Do you have a preferred way to r-run?

@demeritcowboy
Copy link
Contributor Author

Visit the civi dashboard. Either use php8 or you can sneak in a \phpQuery::$debug = 2; into the function here.

@totten
Copy link
Member

totten commented Oct 20, 2022

r-run: OK, so I don't actually get the original warning on my php81 environment (bknix-edge / dmaster) out of the box. But the \phpQuery::$debug=2 does help to provoke. Overall steps:

  1. Enable afform_admin
  2. Pick an afform and enable dashboard support. (This may not actually be needed - but I did it to be sure.)
  3. Edited Civi\Afform\Scanner to include \phpQuery::$debug = 2;
  4. Open civicrm/dashboard
  5. On CLI, run cv flush
  6. Reload civicrm/dashboard

At step 6 of the process, I can confirm that the patch cleans things up. (Before the patch, step 6 showed the af-field warnings. With the patch, step 6 looks cleaner. 👍 )

Beyond that... concept seems good, and the test-suite is passing. Merging.

@totten totten merged commit d6d72ff into civicrm:master Oct 20, 2022
@demeritcowboy demeritcowboy deleted the af-tag-2 branch October 20, 2022 11:41
@demeritcowboy
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants