? flashfield.338639.patch
Index: flashfield.widget.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/flashfield/Attic/flashfield.widget.inc,v
retrieving revision 1.1
diff -u -r1.1 flashfield.widget.inc
--- flashfield.widget.inc	25 Oct 2008 21:04:41 -0000	1.1
+++ flashfield.widget.inc	13 Jan 2009 06:48:08 -0000
@@ -32,7 +32,7 @@
       case 'form':
 
         // Retrieve the argument that identifies the content type
-        $type = arg(3);
+        $type = str_replace("-","_",arg(3));
 
         // Retrieve the list of FileFields associated with this content type
         $results = db_query("SELECT field_name FROM {content_node_field_instance} WHERE type_name = '%s' AND widget_type = 'filefield_widget' AND widget_active = 1", $type);
