On one client's CCK add/edit forms, the input format boxes are totally strange. See attached screenshot.

Has anyone ever seen this before and can throw me a bone as far as where to begin troubleshooting? You'll note the "enable rich-text" link which comes from tinymce in these screenshots, but I've already confirmed the problem persists without that module enabled.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webchick’s picture

Forgot to mention.. using most recent version of DRUPAL-4-7 and CCK DRUPAL-4-7 -- just updated seconds ago... this problem was also shown before the update, so is at least a week or two old.

acp’s picture

Status: Active » Needs review
FileSize
572 bytes

Hello, I had the exact same problem. Having completely deleted my content type, I created a new one today to find out that my input format is above the textfield it is logically attached to. (that might be the reason you're getting two input formats one after another, the below one is misplaced).

While tweaking around to find a solution, I realized that the filter_form function accepts a weight parameter that is set to NULL by the CCK module. I tried to set it to the fields weight and still got my problem. Adding one to it seemed to fix this. I added two fields, with the same weight, one before and one after the one causing problems, the "input format" settings are printed correctly.

I'm providing a patch, although I truely believe that it needs a review since the problem might be elsewhere and only bypassed with this solution.

webchick’s picture

I tested this and it did indeed get rid of the problem. I will try and do a more thorough review later but in the meantime, thank you very much!

Zach Harkey’s picture

+1 Like a charm.

JonBob’s picture

Status: Needs review » Fixed

Committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)