I am using Drupal 6.15 and Support module 6.x-1.3 with several other modules.

When i am trying to add new support ticket there are no additional fields visible. Maybe i will use an example - it will be easier to explain.

I have two clients defined A and B. And 2 additional fields x and y. Field x is enabled for both A and B. Field y is enabled only for B.

When i try to add new support ticket without default client selected - after selecting A or B no fields are displayed (ajax is returning some code but there is no div "support-fields-ahah-wrapper" in page source so it cannot be placed there). Fields returned by ajax are correct to the settings described above - but there is no container where it could be displayed.

When i add to code client=A (so client A is selected as default) then field x is visible correctly. But after changing client there is no change. Ajax is returning always only the x field.
When i add to code client=B (so client B is selected as default) then fields x and y are visible - what is ok. But after changing client there is no change. Ajax is returning always both x and y field.

Maybe it is some confilct whith other installed modules ? How to trace it ?

Additionaly support field is not respecting Content Permissions module settings.

CommentFileSizeAuthor
#5 1031004-3.patch2.73 KBspan
#4 1031004-2.patch2.84 KBspan

Comments

nasty’s picture

I have solved the problem. But i am not sure if it is ok. Please verify that.

I have replaced in function support_fields_form_alter() lines

    $form['support']['support-fields-ahah-wrapper'] = array(
      '#prefix' => '<div id="support-fields-ahah-wrapper">',
      '#suffix' => '</div>',
      '#type' => 'markup',
      '#description' => t('Please fill out these values.'),
    );

with

    $form['support']['support-fields-ahah-wrapper'] = array(
      '#value' => '<div id="support-fields-ahah-wrapper"></div>',
      '#type' => 'markup',
      '#description' => t('Please fill out these values.'),
    );

span’s picture

Status: Active » Needs review

Hey!

Thanks for your report. I find it very strange that you encounter this bug as noone else have reported it.

I haven't had a chance to have a closer look at your fix nor the problem but I will have a look as soon as possible. At a first glance it looks fine.

Thanks alot.

span’s picture

Status: Needs review » Closed (fixed)

Fixed in RC1, thanks.

span’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new2.84 KB

I'm reopening this as this change has caused some other problems it seems. I now have a clean install of everything where this is working with both groups and fields. Related issues are #1096502: Client selection for new tickets wont work in IE and #1077832: CCK groups not working properly.

Will this new patch work for you, it's toward the 6.x-2.1-RC1?

EDIT: NEW PATCH IN #5.

span’s picture

StatusFileSize
new2.73 KB

This replaces #4 and has been tested in Firefox, Chrome and IE 8.

span’s picture

Version: 6.x-2.1-beta3 » 6.x-2.1-rc1
span’s picture

Status: Needs review » Fixed

Should be fixed in rc4.

Status: Fixed » Closed (fixed)

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