the recent change to put the taxonomy pulldown into its own fieldset may have made sense from a UI perspective for some kinds of nodes, but it's certainly very confusing looking in the forums.

A drupal admin would understand that forums are actually implemented in terms of Categories, but a normal forum user will be confused by the box "Categories" around the forum selector.

Comments

moshe weitzman’s picture

indeed ... IMO, we should only use fieldset when there are 2 or more fields to be grouped

budda’s picture

Component: base system » taxonomy.module
Status: Active » Reviewed & tested by the community
StatusFileSize
new525 bytes

Agreed, it makes simple forms look more complicated than they should be.

Attached patch checks if there are multiple vocabularies in the form before enclosing them in a fieldset.

drumm’s picture

Status: Reviewed & tested by the community » Needs review
dries’s picture

Looks good to me. Make isset() should be is_array()?

budda’s picture

StatusFileSize
new528 bytes

isset() vs. is_array() is inherited from the original code. But is_array() makes more sense, patch attached to rectify this.

nickl’s picture

StatusFileSize
new1.27 KB

The attached patch assumes to fix the problem:

indeed ... IMO, we should only use fieldset when there are 2 or more fields to be grouped

but instead of avoiding the fieldset succeeds in removing the whole forums select box from the form.
Attached a new patch that checks if the form has more than one item and if not will display the 1 item without a fieldset.

nickl’s picture

StatusFileSize
new1.27 KB

Lets try this again:
The attached patch assumes to fix the problem:

indeed ... IMO, we should only use fieldset when there are 2 or more fields to be grouped

...but instead of avoiding the fieldset it succeeds in removing the whole forums select box from the form.
Attached is a new patch that checks if the form has more than one item and if not will display the 1 item without a fieldset.

nickl’s picture

StatusFileSize
new11.04 KB

Here is the before and after screenshots.

flk’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.28 KB

corrected syntax @ line 24.

works like a charm in resolving the issue.

drumm’s picture

Status: Reviewed & tested by the community » Needs work

patching file modules/taxonomy/taxonomy.module
Hunk #1 FAILED at 668.
1 out of 1 hunk FAILED -- saving rejects to file modules/taxonomy/taxonomy.module.rej

nickl’s picture

Status: Needs work » Reviewed & tested by the community
StatusFileSize
new1.28 KB

Rerolled to head. Marked RTBC again as nothing has changed.

drumm’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD.

drumm’s picture

Assigned: Unassigned » drumm
Priority: Normal » Critical
Status: Fixed » Needs review
StatusFileSize
new845 bytes

This kinda broke free tags. The #tree is important. Here is a fix which modifies the array a bit less.

beginner’s picture

Status: Needs review » Reviewed & tested by the community

patch #13 also fixes: http://drupal.org/node/83946

AjK’s picture

Pathch #13 :-

Looks good, see also http://drupal.org/node/84108

nickl’s picture

Hopefully this fixes the blockquote issue too.

Patched to fresh head. All seems to be working.

nickl’s picture

Hopefully this fixes the blockquote issue.

nickl’s picture

Patch at #13 RTBC

drewish’s picture

+1 on the patch in comment #13

AjK’s picture

This patch really needs to get committed

Another duplicate http://drupal.org/node/84987

regards,
--AjK

drumm’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)