I came across this issue when trying to build a module that can create entities in a modal dialog via ajax. I'm using enity_create() and entity_form() with great success for nodes, terms and users however I couldn't get a form when it came to vocabs.

I traced it through and it looks to me like entity_metadata_form_taxonomy_vocabulary() was a copy and paste of entity_metadata_form_taxonomy_term() but someone forgot to change the name of the arg and the form id.

Here's a patch.

Thanks
Josh

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jeff h’s picture

Tested and working fine here.

Any maintainers got a few minutes to roll this patch in?

Alexander Allen’s picture

Status: Active » Needs review
FileSize
1.07 KB

Hmm, the patch was not tested by Drupal. Re-uploading for testing.

Thanks for reporting and fixing this.

Alexander Allen’s picture

Do'h, this is for 7.x-1.0, needs to be re-rolled and re-tested for the latest.

Alexander Allen’s picture

Status: Needs review » Active
Alexander Allen’s picture

Status: Active » Needs review
FileSize
1.14 KB

Re-uploaded to reflect line numbers in latest version. Line numbers changed slightly (from @@ -892,11 to @@-915,11 ...). Re-roll applied cleanly for me on the 7.x-1.x dev version.

Alexander Allen’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
3.24 KB

Tested. Changing

drupal_build_form('taxonomy_form_term', $form_state);

to

 drupal_build_form('taxonomy_form_vocabulary', $form_state);

returns a proper taxonomy vocabulary form.

In my test, attempting to retrieve a 'taxonomy_form_term' form resulted in a Drupal error page.

Test attached.

fago’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Fixed

ops - I guess that was me ;)

Thanks, committed.

Status: Fixed » Closed (fixed)

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