Closed (fixed)
Project:
Multistep (D7)
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
3 Mar 2009 at 15:30 UTC
Updated:
16 Jul 2009 at 19:50 UTC
Jump to comment: Most recent file
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?
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | multistep_module_weight.patch | 792 bytes | vkareh |
Comments
Comment #1
vkareh commentedAdded support for new field types. Download the new version.
Comment #2
TaPes commentedthank you very much
Comment #3
TaPes commentedComment #4
TaPes commentedsorry, but it's still not working.
Comment #5
TaPes commentedComment #6
vkareh commentedCan you elaborate on the problem, as it seems to work for me? Thanks.
Comment #7
TaPes commentedoffice 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.
Comment #8
vkareh commentedOkay, 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!
Comment #9
TaPes commentedI'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.
Comment #10
vkareh commentedStrange, 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?
Comment #11
TaPes commentedi'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.
Comment #12
TaPes commentedi 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.
Comment #13
vkareh commentedGOT 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.
Comment #14
vkareh commentedHere it is. Let me know if this works.
Comment #15
TaPes commentedperfect!!!!
IT works!!!
i thank you so much!
Comment #16
vkareh commentedAwesome! Thank you for taking the time to follow this through! :)
I'll include it in the next release of the module.
Comment #17
vkareh commented