Skip to content

Commit

Permalink
fixed: database join element description field index out of sync if r…
Browse files Browse the repository at this point in the history
…endered as dropdown and please select turned off
  • Loading branch information
pollen8 committed Jan 23, 2014
1 parent 9ee7464 commit 13591da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/fabrik_element/databasejoin/databasejoin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ public function render($data, $repeatCounter = 0)
{
$opt = $opts[$i];
$display = $opt->value == $default_val ? '' : 'none';
$c = $i + 1;
$c = $this->showPleaseSelect() ? $i + 1 : $i;
$html[] = '<div style="display:' . $display . '" class="notice description-' . $c . '">' . $opt->description . '</div>';
}

Expand Down

0 comments on commit 13591da

Please sign in to comment.