Skip to content

Commit

Permalink
fixed subpalettes not working with checkboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho committed Oct 6, 2020
1 parent 2d5a1b5 commit 56d1d3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,9 @@
# Changelog
All notable changes to this project will be documented in this file.

## [2.7.6] - 2020-10-06
- fixed subpalettes not working with checkboxes

## [2.7.5] - 2020-10-01
- fixed type issue

Expand Down
2 changes: 1 addition & 1 deletion src/Widget/MultiColumnEditor.php
Expand Up @@ -368,7 +368,7 @@ protected function getRow(array $row, $palette = 'default')

if ('checkbox' == $this->arrDca['fields'][$name]['inputType'] && !$this->arrDca['fields'][$name]['eval']['multiple']) {
// Look for a subpalette
if (\strlen($this->arrDca['subpalettes'][$name])) {
if ($row[$name] && \strlen($this->arrDca['subpalettes'][$name])) {
$subPalette = $this->arrDca['subpalettes'][$name];
}
} else {
Expand Down

0 comments on commit 56d1d3e

Please sign in to comment.