Author: hansbak
Date: Tue Jul 22 11:39:15 2008
New Revision: 678856
URL:
http://svn.apache.org/viewvc?rev=678856&view=revLog:
error fix in converted groovy prog
Modified:
ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductContentContent.groovy
Modified: ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductContentContent.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductContentContent.groovy?rev=678856&r1=678855&r2=678856&view=diff==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductContentContent.groovy (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductContentContent.groovy Tue Jul 22 11:39:15 2008
@@ -21,6 +21,7 @@
import org.ofbiz.entity.*;
import org.ofbiz.entity.util.*;
import org.ofbiz.base.util.*;
+import java.sql.Timestamp;
contentId = request.getParameter("contentId");
if ("".equals(contentId)) {
@@ -102,7 +103,7 @@
downloadData = [:];
if (contentId && content) {
downloadDr = content.getRelatedOne("DataResource");
- if (subjectDr) {
+ if (downloadDr) {
download = downloadDr.getRelatedOne("OtherDataResource");
if (download) {
downloadData.file = download.dataResourceContent;