I have a standard installation of Drupal which contains only the two basic content type "Basic" and "Article" but only the Basic content type appears on the settings page.
The problem is that the content type forms use the same id, so every time the last one will be active.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

segi created an issue. See original summary.

segi’s picture

Status: Active » Needs review
FileSize
749 bytes
thamas’s picture

Status: Needs review » Reviewed & tested by the community

Have 10+ content types. Applied the patch and now I can see all of them! :)

geerlingguy’s picture

Status: Reviewed & tested by the community » Needs review

Hmm... I'll take a look and do some extra manual testing. We might want to add a test to make sure that all the installed types show up in configuration, and also to make sure that any type that's selected properly picks the node type form by form ID. I remember the node form IDs were changing here and there in the D8 dev cycle, and I purposely moved away from node_[type]_form at some point because it broke something.

mukesh.agarwal17’s picture

Tested the patch and it works smooth. The node forms are visible and are protected too. However, I think this should also scale to custom entity forms. There should be a mechanism to check all type forms. Either I choose one of user, contact, node or comment OR I have to go for all forms. I should be able to say I need honeypot in all my product forms as well where product is a separate entity outside node.

  • geerlingguy committed a8c80af on 8.x-1.x authored by segi
    Issue #2710705 by segi: The module doesn't handle all content type forms
    
geerlingguy’s picture

Status: Needs review » Reviewed & tested by the community

Works great!

geerlingguy’s picture

Status: Reviewed & tested by the community » Fixed

This will be included in the 8.x-1.24 release, whenever that happens (hopefully by DrupalCon NOLA).

Status: Fixed » Closed (fixed)

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