For some odd reason the HTML table used to list and structure all of the components disappear. Has anyone else gotten this?

CommentFileSizeAuthor
#6 webform_node-edit_components.jpg33.71 KBashtonium

Comments

makingme’s picture

Version: 5.x-1.4 » 5.x-1.x-dev

CORRECTIOM: This bug is for the development version as well.

makingme’s picture

Is anyone suffering the same problem??? I really need some help here!

davemybes’s picture

Have you tried changing your theme to see if its causing the problem?

scor’s picture

Which theme are you using? Can you give more info on your browser. Try also with a different browser if you can.

quicksketch’s picture

Status: Active » Closed (fixed)

Closing after lack of activity.

ashtonium’s picture

Title: Component html table structure disappears » Component html table structure not used on node edit
StatusFileSize
new33.71 KB

I have actually been experiencing this for a while. I was only annoying, not really debilitating, until 5.x-1.8 added on the form elements to adjust the weight and mandatory info settings. Now the Components fieldset on the node edit form is nearly unusable.

To give a bit more information: on the node/add form, the Components' field-item divs are organized in a table as they should be. After the new webform has been saved, however, the Components fieldset (now on the node/edit form) contains just a bunch of form-item divs with no table layout at all. I've attached a screen-shot to help with the explanation.

After some testing, it looks like this is because theme_webform_node_form isn't being called for the node/edit form.

I remember seeing in the webforms screencast that it was working properly in the garland theme, so I switched to that and nothing :/ I'm assuming it's a module conflict, so I'll see if I can't narrow it down a little by disabling some of my modules.

ashtonium’s picture

Status: Closed (fixed) » Active

re-opening

ashtonium’s picture

Priority: Critical » Normal

Ok, this is being caused by the diff module (in my setup at least).

Looks like the diff module uses an implementation of hook_form_alter to set $form['#theme'] = 'diff_node_form';The theme_diff_node_form function then positions the diff module's "Preview Changes" button down with the other buttons at the end of the form.

When $form['#theme'] = 'diff_node_form'; in diff.module is commented out, the components are themed correctly.

Oddly enough, when that line is commented out, the "Preview Changes" button is still positioned correctly on webform node/nid/edit forms, but not on other node types' node/nid/edit forms.

I suspect that this conflict isn't specific to the diff & webform module combination, but I don't currently use any other modules that have a custom theme_node_form function, so I can't test that.

I'm also not sure which module should be fixed, if either. But my solution for now was to comment out both the diff_form_alter function and the theme_diff_node_form function from diff.module since I don't really use the "Preview Changes" button anyway.

I'll create an issue over on the diff side as well.

ashtonium’s picture

There is a diff patch for a different issue that fixes this one.

posted at: http://drupal.org/node/115411#comment-658374

That patch is also available in the latest 5.x-1.x-dev version of diff.

ashtonium’s picture

sorry, should have mentioned that after getting that patch, you need to go to /admin/content/types/webform on your site and un-check the "Show Preview changes button on node edit form" option at the bottom. The patch makes that setting available per content type.

quicksketch’s picture

Title: Component html table structure not used on node edit » Diff module breaks webform component table structure

Thanks ashtonium for the extensive research! That's quite helpful.

We might keep tabs on http://drupal.org/node/212951, which suggests moving the components to another tab instead of on the main node form. This would prevent incompatibilities with upload, taxonomy, and (apparently) diff modules. I'm sure there are others also that don't agree with the way webform handles the node form.

quicksketch’s picture

Version: 5.x-1.x-dev » 5.x-2.x-dev
Status: Active » Fixed

The webform 2.x branch corrects the problems with Diff module (and taxonomy, upload, imagefield, and others). I'm trying to get the 2.x version out and replacing 1.x as soon as possible to bring webform up to snuff in Drupal 5, and I'm recommending that if you need to use Diff and webform together, use the 2.x branch.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

kulfi’s picture

Trying to figure out what the "Show Preview changes button on node edit form" feature does? (i.e. how is it different to the default Preview button)