Skip to content

Commit

Permalink
Refs #81 - changes copied from master branch commit 8a08c2b
Browse files Browse the repository at this point in the history
  • Loading branch information
cbmarcum committed Oct 26, 2019
1 parent 960c065 commit 55bf54e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'}"
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions grails-app/views/product/show.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
<dd><f:display bean="product" property="shortDescription"/></dd>

<dt><g:message code="product.longDescription.label" default="Long Description"/></dt>
<dd><f:display bean="product" property="longDescription"/></dd>
<dd>${product?.longDescription.encodeAsRaw()}</dd>

<dt><g:message code="product.largeDescription.label" default="Large Description"/></dt>
<dd><f:display bean="product" property="largeDescription"/></dd>
<dd>${product?.largeDescription.encodeAsRaw()}</dd>

<dt><g:message code="product.conditionDescription.label" default="Condition Description"/></dt>
<dd><f:display bean="product" property="conditionDescription"/></dd>
Expand Down Expand Up @@ -148,7 +148,7 @@
<table class="table">

<tbody>
<g:each in="${product.photos}" var="photo">
<g:each in="${product?.photos}" var="photo">
<tr>
<td>
<cb:image image="${photo.photo.getCloudFile('thumb')}"/><br/>
Expand Down

0 comments on commit 55bf54e

Please sign in to comment.