'list' checkbox doesn't work

bec - July 8, 2008 - 20:49
Project:FileField
Version:6.x-1.0-beta2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Next to the files, there is a "list" checkbox that should allow users to make their files "unlisted" (invisible except on the node edit form)... right?

This checkbox doesn't get saved when I save my nodes; and when I unset the value in the database, the file is still listed when viewing the node (though in the edit form, the checkbox does show as unchecked). I have "always list files" unchecked for that field's configuration.

#1

bec - July 8, 2008 - 20:58

I'm using CCK 6.x-2.0-rc3 :)

#2

AntoineLafontaine - July 9, 2008 - 02:22

I confirm this behavior too. CCK 6.x-2.0-rc3 and "always list files" unchecked.

#3

jpetso - July 11, 2008 - 12:24
Status:active» fixed

Fixed in CVS HEAD (future beta3). The reason for that bug was that the Form API obviously doesn't pass the value if the "List" checkbox is disabled, it only passes it when the checkbox is enabled. However, filefield needs to distinguish between "enabled", "disabled" and "checkbox doesn't exist at all", so I needed to insert some extra code to make this work as expected.

Thanks for the report!

#4

bec - July 12, 2008 - 18:44

Thanks for the fix!

#5

Anonymous (not verified) - July 31, 2008 - 04:47
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.