From 55bf54e671e35598d72b05d905d7501f517da183 Mon Sep 17 00:00:00 2001 From: cbmarcum Date: Sat, 26 Oct 2019 15:03:37 -0400 Subject: [PATCH] Refs #81 - changes copied from master branch commit 8a08c2b --- .../net/codebuilders/mybusiness/ProductCategory.groovy | 2 +- .../net/codebuilders/mybusiness/ImportSheetService.groovy | 4 ++-- grails-app/views/product/show.gsp | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/grails-app/domain/net/codebuilders/mybusiness/ProductCategory.groovy b/grails-app/domain/net/codebuilders/mybusiness/ProductCategory.groovy index 097acde..8ee3de5 100644 --- a/grails-app/domain/net/codebuilders/mybusiness/ProductCategory.groovy +++ b/grails-app/domain/net/codebuilders/mybusiness/ProductCategory.groovy @@ -50,7 +50,7 @@ class ProductCategory { // formatted for use in form select fields String toString() { - return "${description} < ${parent?.description ?: 'No Parent'} - id:${id}" + return "${description} - id:${id} > ${parent?.description ?: 'No Parent'}" } } diff --git a/grails-app/services/net/codebuilders/mybusiness/ImportSheetService.groovy b/grails-app/services/net/codebuilders/mybusiness/ImportSheetService.groovy index 1de35fc..657244f 100644 --- a/grails-app/services/net/codebuilders/mybusiness/ImportSheetService.groovy +++ b/grails-app/services/net/codebuilders/mybusiness/ImportSheetService.groovy @@ -576,7 +576,7 @@ class ImportSheetService { // not in db yet pc = new ProductCategory([description: desc, parent: pcParent]) } else { - pc = ProductFeature.get(pcId) + pc = ProductCategory.get(pcId) pc.description = desc pc.parent = pcParent } @@ -699,7 +699,7 @@ class ImportSheetService { title: title, photo: mf]) } else { - photo = ProductFeature.get(photoId) + photo = Photo.get(photoId) photo.name = name photo.alt = alt photo.title = title diff --git a/grails-app/views/product/show.gsp b/grails-app/views/product/show.gsp index 3ae603e..bb13366 100644 --- a/grails-app/views/product/show.gsp +++ b/grails-app/views/product/show.gsp @@ -35,10 +35,10 @@
-
+
${product?.longDescription.encodeAsRaw()}
-
+
${product?.largeDescription.encodeAsRaw()}
@@ -148,7 +148,7 @@ - +