Skip to content

Commit

Permalink
Fixes #6461 | Adding custom position of the module in the position dr…
Browse files Browse the repository at this point in the history
…opdown while editing module on frontend.
  • Loading branch information
Achal-Aggarwal committed Jul 25, 2015
1 parent 158191e commit 2dcb8e2
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@

$positions = $this->model->getPositions();

echo JHtml::_('select.genericlist', $positions, 'jform[position]', '', '', '', $this->item['position']);
$currentPosition = $this->item['position'];

if (in_array($currentPosition, $positions) == false){
$positions[$currentPosition] = $currentPosition;
}

echo JHtml::_('select.genericlist', $positions, 'jform[position]', '', '', '', $currentPosition);

0 comments on commit 2dcb8e2

Please sign in to comment.