Closed (fixed)
Project:
Not for sale
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2009 at 11:25 UTC
Updated:
5 Dec 2009 at 15:46 UTC
Jump to comment: Most recent file
Comments
Comment #1
joachim commentedThe flag is defined in hook_flag_default_flags, which flag module should pick up.
Try clearing your cache.
Comment #2
joachim commentedHmm, doesn't look like there's a cache for flags.
Can you check that uc_notforsale_flag_default_flags() gets called on the flags admin page?
Comment #3
thamasI'm not sure i did it right (I am not a coder), but I enabled Devel and set it to list all query. I didn't see uc_notforsale_flag_default_flags() in the list. See the attached image.
If I was wrong, please tell me, how to look for it!
Comment #4
joachim commentedI've just installed on a fresh system and it all works perfectly for me.
This is actually about function calls not queries.
Now you have devel installed, open up the uc_notforsale.module file and add this dsm() statement to uc_notforsale_flag_default_flags like this:
This will produce a message when you are at admin/build/flags.
If not... something is very wrong with your site!
Comment #5
thamasI added the statement, but there were no message. Anyway it is a test site to learn uc. So I added the module to an other uc site, and there it works well.
Thanks for your effort!
(By the way I have a future request: #652062: Remove quantity field too)