The Meta tags field set is present when editing an existing taxonomy term, but not when adding new terms.

  $bool = (isset($form['tid']['#value']) &&
    !isset($form_state['confirm_delete']) &&
    !isset($form_state['confirm_parents'])
  );

By removing the test for tid being set...

$bool = (
    !isset($form_state['confirm_delete']) &&
    !isset($form_state['confirm_parents'])
  );

the form elements show on the term add form, and the meta content gets saved correctly in the db.

CommentFileSizeAuthor
#3 new_tax_term_dev.patch450 bytesjenlampton
new_tax_term.patch1.65 KBjenlampton

Comments

avpaderno’s picture

Version: 6.x-1.11 » 6.x-1.x-dev
Status: Needs review » Needs work

Patches need to be built for the development snapshot.

avpaderno’s picture

I have marked #701002: Unable to Add Meta Tags to Taxonomy Term as duplicate of this report.

jenlampton’s picture

Status: Needs work » Needs review
StatusFileSize
new450 bytes

okay. re-rolled against dev branch.

Anonymous’s picture

Title: Meta Tags fields missing when adding a new taxonomy term » Meta tags form fields are missing when adding a new taxonomy term
Status: Needs review » Reviewed & tested by the community

I also changed the code to avoid a warning about the access to a not existing array index.

I changed the code on the local copy, and I will commit the code once I am done with other changes.

Anonymous’s picture

Assigned: jenlampton » Unassigned
Status: Reviewed & tested by the community » Fixed

The code has been committed; thanks for your report.

As usual, read what reported in the project page, before to update the installed modules.

Status: Fixed » Closed (fixed)

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