diff --git a/applications/product/groovyScripts/product/config/ProductConfigItemContentServices.groovy b/applications/product/groovyScripts/product/config/ProductConfigItemContentServices.groovy index be7f42de17..0f446b7422 100644 --- a/applications/product/groovyScripts/product/config/ProductConfigItemContentServices.groovy +++ b/applications/product/groovyScripts/product/config/ProductConfigItemContentServices.groovy @@ -30,7 +30,7 @@ def createProductConfigItemContent() { Map result = success() GenericValue newEntity = makeValue("ProdConfItemContent", parameters) if (!newEntity.fromDate) { - newEntity.fromDate = UtilDateTime.nowTimestamp() + newEntity.fromDate = UtilDateTime.getTimestamp(System.currentTimeSeconds() * 1000) } newEntity.create() @@ -47,7 +47,10 @@ def createProductConfigItemContent() { * Update Content For ProductConfigItem */ def updateProductConfigItemContent() { - GenericValue lookedUpValue = from("ProdConfItemContent").where(parameters).queryOne() + GenericValue pkParameters = makeValue("ProdConfItemContent") + pkParameters.setPKFields(parameters) + + GenericValue lookedUpValue = from("ProdConfItemContent").where(pkParameters).queryOne() lookedUpValue.setNonPKFields(parameters) lookedUpValue.store() diff --git a/applications/product/widget/catalog/ConfigForms.xml b/applications/product/widget/catalog/ConfigForms.xml index 9c618c5aab..291b1c8be2 100644 --- a/applications/product/widget/catalog/ConfigForms.xml +++ b/applications/product/widget/catalog/ConfigForms.xml @@ -177,8 +177,9 @@ under the License. header-row-style="header-row" default-table-style="basic-table"> - - + + +