Skip to content

Commit

Permalink
Support order and except attributes simultaneously
Browse files Browse the repository at this point in the history
  • Loading branch information
codeconsole committed Sep 5, 2024
1 parent 970ee8b commit 94051b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -564,10 +564,10 @@ class FormFieldsTagLib {
List<PersistentProperty> properties

if (attrs.order) {
def orderBy = getList(attrs.order)
if (attrs.except) {
throwTagError('The [except] and [order] attributes may not be used together.')
orderBy = orderBy - getList(attrs.except)
}
def orderBy = getList(attrs.order)
properties = orderBy.collect { propertyName ->
fieldsDomainPropertyFactory.build(domainClass.getPropertyByName(propertyName))
}
Expand Down

0 comments on commit 94051b8

Please sign in to comment.