bugfixx: When a user selects topics in an open posting, the applicable topic pages...
[mir.git] / source / mircoders / producer / ProducerTopics.java
index 2e9fa00..e23e970 100755 (executable)
@@ -101,7 +101,7 @@ public class ProducerTopics extends ProducerList {
         EntityContent currentContent;
         if(entityList != null && entityList.size()==1){
           currentContent = (EntityContent)entityList.elementAt(0);
-          try { 
+          try {
               SimpleHash specialHash = HTMLTemplateProcessor.makeSimpleHash(currentContent);
 
               currentMediaList = DatabaseContentToMedia.getInstance().getUploadedMedia(currentContent);
@@ -144,6 +144,11 @@ public class ProducerTopics extends ProducerList {
                 specialHash.put("to_media_video", mediaListVideo);
                 specialHash.put("to_media_other", mediaListOther);
               } //end if currentMediaList != null
+                                                       //convert to html
+                                                       if ( ((SimpleScalar)specialHash.get("is_html")).getAsString().equals("0") ) {
+                                                               SimpleScalar temp = (SimpleScalar)specialHash.get("description");
+                                                               specialHash.put("description",StringUtil.createHTML(temp.getAsString()));
+                                                       }
               setAdditional("special",specialHash);
           } catch (Exception e) {
             theLog.printError("ProducerTopics: problem with start special: "+currentContent.getId()+" "+e.toString());