fixed bug where media subtitle was being
authorjohn <john>
Fri, 22 Nov 2002 11:57:52 +0000 (11:57 +0000)
committerjohn <john>
Fri, 22 Nov 2002 11:57:52 +0000 (11:57 +0000)
interpreted as mandatory,
now instead of throwing an error if the user didn't
put a subtitle on the media item,
it assigns a sensible default.

source/mircoders/media/MediaRequest.java

index dc26abb..d3a9f41 100755 (executable)
@@ -55,7 +55,7 @@ import mir.media.*;
  *    appropriate media objects are set.
  *
  * @author mh
- * @version $Id: MediaRequest.java,v 1.3 2002/11/04 04:35:22 mh Exp $
+ * @version $Id: MediaRequest.java,v 1.4 2002/11/22 11:57:52 john Exp $
  *
  */
 
@@ -145,7 +145,8 @@ public class MediaRequest implements FileHandler
 
       String mediaTitle = (String)mediaValues.get("media_title"+fileNum);
       if ( (mediaTitle == null) || (mediaTitle.length() == 0))
-          throw new FileHandlerUserException("Missing field: media title "+mediaTitle+fileNum);
+       mediaTitle="media item "+fileNum;
+       //    throw new FileHandlerUserException("Missing field: media title "+mediaTitle+fileNum);
 
       // TODO: need to add all the extra fields that can be present in the 
       // admin upload form. -mh