hi,
i'm using mutistep for my site and i have a problem with the module office houres (http://drupal.org/project/office_hours).
that module ignores the steps.

is there a patch to fix that?

CommentFileSizeAuthor
#14 multistep_module_weight.patch792 bytesvkareh

Comments

vkareh’s picture

Title: office houres and multistep » office hours and multistep
Assigned: Unassigned » vkareh
Status: Active » Fixed

Added support for new field types. Download the new version.

TaPes’s picture

thank you very much

TaPes’s picture

Status: Fixed » Closed (fixed)
TaPes’s picture

Status: Closed (fixed) » Closed (won't fix)

sorry, but it's still not working.

TaPes’s picture

Status: Closed (won't fix) » Active
vkareh’s picture

Version: 5.x-1.1 » 5.x-1.2
Status: Active » Postponed (maintainer needs more info)

Can you elaborate on the problem, as it seems to work for me? Thanks.

TaPes’s picture

office hours still ignores multistep.

i created a group and added office hours to that group. the step of this group is 3.
when i now created a new node, office hours is still on the first page.

vkareh’s picture

Okay, I have an idea. Try disabling the module, go to the uninstall section and uninstall it as well. This will clear the cache. Then enable it and see if it works. Alternatively, remove the entry called 'content_type_info' in the 'cache_content' table, or you can empty the full table if you'd like. Let me know if this works. Thanks!

TaPes’s picture

I've tried it, but it doesn't work.
then i tested it with a new drupal installation and even this does not work.

so multisep still not works with office hours.

vkareh’s picture

Strange, it's working fine for me. That's interesting... What version of office_hours are you using? I'm using office_hours-5.x-1.4 with multistep-5.x-1.2, cck-5.x-1.10, and drupal-5.16.
Do you have any kind of caching or throttling enabled?

TaPes’s picture

i'm using:

Multistep 5.x-1.2
office_hours-5.x-1.4
cck-5.x-1.10
drupal-5.16

the same you are using.
thats very strange.

as i said, i tried it today with an complete new installation of drupal to test it and it doesn't work.
and no, i've no caching or throttling enabled.

but, thank you for your help.

TaPes’s picture

i still have the problem, i've tried it again, but ist doesn't work.
did you made any other config?

i've just seen that the office_hours module is shown on the first site, but also on step 3. but it should only shown on step 3.
i think the problem is that office_hours is a own fieldgroup.

vkareh’s picture

GOT IT!

Okay, after a few trial-and-errors and a bunch of coffee-related headaches, I found the problem. Some time in the past, I set the system weight of the multistep module to 2, while most modules are set at 0. I reset it back to 0 and could replicate the problem.

The problem is that multistep waits for each module required for the form to load so that it knows which modules it has to grab the hook_widget from, then stores it in a global variable. This happens in multistep_init. By setting the weight to 2 (or anything greater than 0, really) it waits for office_hours (and all other cck widget modules) to load and then it knows how to handle the widget related to that field.

You can try to change the weight of multistep in the system table in your database. Meanwhile, I'll write a patch for the multistep.install file so that it does this at install.

I'm sorry about this, I should have remembered about this detail sooner.

vkareh’s picture

Category: support » bug
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new792 bytes

Here it is. Let me know if this works.

TaPes’s picture

Status: Needs review » Reviewed & tested by the community

perfect!!!!
IT works!!!

i thank you so much!

vkareh’s picture

Awesome! Thank you for taking the time to follow this through! :)
I'll include it in the next release of the module.

vkareh’s picture

Version: 5.x-1.2 » 5.x-1.3
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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