Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ protected function getInput()

$data['options'] = $this->getOptions();
$data['allowCustom'] = $this->allowAdd;
$data['customPrefix'] = $this->customPrefix;
$data['refreshPage'] = (boolean) $this->element['refresh-enabled'];
$data['refreshCatId'] = (string) $this->element['refresh-cat-id'];
$data['refreshSection'] = (string) $this->element['refresh-section'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* @var array $options Options available for this field.
* @var array $inputType Options available for this field.
* @var string $accept File types that are accepted.
* @var string $customPrefix Optional prefix for new categories.
*/

$html = array();
Expand All @@ -72,9 +73,9 @@
{
$attr2 .= ' allow-custom';

if ($this->customPrefix !== '')
if ($customPrefix !== '')
{
$attr2 .= ' data-custom_value_prefix="' . $this->customPrefix . '" ';
$attr2 .= ' new-item-prefix="' . $customPrefix . '" ';
}
}

Expand Down
2 changes: 0 additions & 2 deletions administrator/components/com_content/Model/ArticleModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -780,8 +780,6 @@ public function save($data)
$data['images'] = (string) $registry;
}

\JLoader::register('CategoriesHelper', JPATH_ADMINISTRATOR . '/components/com_categories/helpers/categories.php');

// Create new category, if needed.
$createCategory = true;

Expand Down