There is an issue in the hook 'xmlsitemap_form_alter'. The code for this function has been changed in the recent update and it affected the form fields on node add form. Earlier the fields were appearing in the node add form, but not we can see the fields only on the node edit form.

This also means we're missing some test coverage for this.

Comments

er.garg.karan created an issue. See original summary.

dave reid’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new1.08 KB

Yes, you're right. It appears that node/add uses the form operation of 'default', while the node/{node}/edit route has a form operation of 'edit'. So let's just make this check both for default or edit, instead of conditionally just one.

dave reid’s picture

dave reid’s picture

StatusFileSize
new1.85 KB
new793 bytes

Let's see if this adds the coverage we need.

andralex’s picture

Status: Needs review » Reviewed & tested by the community

Tested and it works as expected with #4

alex_optim’s picture

For me too.

ilgnerfagundes’s picture

StatusFileSize
new163.13 KB

The patch was applied correctly.

voleger’s picture

Patch needs reroll

voleger’s picture

Assigned: Unassigned » voleger
Status: Reviewed & tested by the community » Needs work

I'll reroll it

voleger’s picture

Assigned: voleger » Unassigned
Status: Needs work » Needs review
StatusFileSize
new886 bytes
new1.94 KB

Here is rerolled patch

The last submitted patch, 10: 3106767-10-test-only.patch, failed testing. View results

pifagor’s picture

Status: Needs review » Reviewed & tested by the community

  • pifagor committed b228b10 on 8.x-1.x authored by voleger
    Issue #3106767 by Dave Reid, voleger, ilgnerfagundes, er.garg.karan,...
pifagor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

dave reid’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new3.18 KB

Reopening for some additional test coverage I had intended to add.

Status: Needs review » Needs work

The last submitted patch, 16: 3106767-test-coverage.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

dave reid’s picture

Status: Needs work » Needs review
StatusFileSize
new4.32 KB

Ok so I needed to reset the entity access cache after saving a programmatic entity. And the form op for new users is 'register' so I added support for that.

  • Dave Reid committed b11aeaa on 8.x-1.x
    Issue #3106767 by Dave Reid: Fixed fields not visible on user register...
dave reid’s picture

Status: Needs review » Fixed

Committed #18 to 8.x-1.x. Glad to have increased test coverage around this.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.