Skip to content

Commit

Permalink
// Account for case that of a submitted form with multiple-value cate…
Browse files Browse the repository at this point in the history
…gory id field in categoryedit form element
  • Loading branch information
ggppdk committed Sep 30, 2017
1 parent 101a5f5 commit 0172bb4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ protected function getOptions()
$extension = $this->element['extension'] ? (string) $this->element['extension'] : (string) $jinput->get('option', 'com_content');
}

// Account for case that of a submitted form with multiple-value category id field (e.g. a filtering form), just use the first one
$oldCat = is_array($oldCat)
? reset($oldCat)
: $oldCat;

$db = JFactory::getDbo();
$user = JFactory::getUser();

Expand Down

0 comments on commit 0172bb4

Please sign in to comment.