No widget shows for 'multiple' asset CCK fields > possible simple solution...
danielnolde - November 22, 2008 - 19:31
| Project: | Asset |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Great that Asset is now coming to Drupel 6!
One first (not only ;) bug i encountered, and a possible (too simple?) solution:
The CCK-widget doesn't show up in the node/edit form for CCK asset fields set to 'multiple', in the early 6.x-1.x-dev (CCK 6.2). Solution (seems to work):
Uncomment the code within _asset_widget_form in asset_content.inc
Too simple even to enclose into a patch ;)
Was the code just accidentally left commented out?

#1
#2
all i get when i set an asset field to multiple is a button for "more assets" but nothing happens when i click it.
i tried uncommenting the code in the inc/modules/asset_content.inc file, but it didn't help
(drupal 6.6)
#3
There is a bug fixe release that I will commit as soon as I will have CVS access to the project.
#4
thanks cirotix!
is your getting CVS access likely to take long? (i'm already past a deadline, my fault for using dev versions :)
-joseph
#5
Hey cirotix, any chance of a patch here in the mean time? I've been working on something similar, with the aim of making the interface a bit better. You can see most of what i've done from the attached screenshot, but i've also moved the javascript into an external script.
I've got problems with reordering the fields, or changing them if the form doesn't validate. It'd be nice to use your code rather than slog through and write my own (i'm not very experienced with drupal yet).
-Stefan
#6
I have gained CVS acces yesterday for this project, but I won't have time to commit before tomorrow or tuesday.
#7
looking forward to it!
-jb
#8
nice than,.. waiting...
#9
cirotix or splondike please please please could you put either upload a patch or commit your good work at fixing this, desperately need it for a project I'm working on, don't want to have to reinvent the wheel.
#10
I fixed this module and all works properly now. Thanks to developer for upgrading this assets module to drupal 6.