Skip to content

Commit

Permalink
Fix (maybe, perhaps?) for "unknown label" in detail view for join
Browse files Browse the repository at this point in the history
element, with multi select types (checkbox), when no value selected.
  • Loading branch information
cheesegrits committed Jul 6, 2015
1 parent 208a00e commit a30f841
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/fabrik_element/databasejoin/databasejoin.php
Expand Up @@ -1317,6 +1317,13 @@ public function render($data, $repeatCounter = 0)
}

$targetIds = $this->multiOptionTargetIds($data, $repeatCounter);

// $$$ hugh - no selection, and not new row, so Nothing To See Here, Move Along.
if (FArrayHelper::emptyIsh($targetIds, true) && $formModel->getRowId() != '')
{
return '';
}

$targetIds = $targetIds === false ? $default : $targetIds;

// $$$ hugh - trying to fix issue with read only multiselects submitting wrong values
Expand Down

0 comments on commit a30f841

Please sign in to comment.