jdaugherty commented on code in PR #15557:
URL: https://github.com/apache/grails-core/pull/15557#discussion_r3178400758


##########
grails-views-gson/src/main/groovy/grails/plugin/json/view/api/internal/DefaultHalViewHelper.groovy:
##########
@@ -321,13 +321,13 @@ class DefaultHalViewHelper extends DefaultJsonViewHelper 
implements HalViewHelpe
                         def value = entityReflector.getProperty(object, 
propertyName)
                         if (value != null) {
 
-                            if (association instanceof ToMany && !(association 
instanceof Basic)) {
+                            if (association instanceof ToOne) {

Review Comment:
   These if statements look reversed?  



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to