Skip to content

Commit

Permalink
Merge branch 'hotfix-1.2.8' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicWatson committed Oct 14, 2024
2 parents 525447a + e4a59c1 commit b00995c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v1.2.8

* PXMULTISEL-16 - Multi-select does not work with custom label renderer without label field

## v1.2.7

* PXMULTISEL-15 - Ability to configure label renderer
Expand Down
8 changes: 8 additions & 0 deletions handlers/formcontrols/multiSelect.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ component {
object = formParams.object ?: "";
}

if( len( formParams.labelField ?: "" ) ){
return [ "id", formParams.labelField & " as label" ];
}

if ( !Len( object ) ) {
return [ "id", "${labelfield} as label" ];
}
Expand All @@ -234,6 +238,10 @@ component {

ArrayAppend( selectFields, "id" );

if( !ArrayFind( selectFields, 'label' ) ){
ArrayAppend( selectFields, "label" );
}

return selectFields;
}
}

0 comments on commit b00995c

Please sign in to comment.