Skip to content

Commit

Permalink
Add always the fields path when adding the custom fields
Browse files Browse the repository at this point in the history
Closes joomla#150
  • Loading branch information
laoneo committed Jun 21, 2016
1 parent 9070e2e commit 4947b1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions administrator/components/com_fields/helpers/fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ public static function prepareForm ($context, JForm $form, $data)
$fieldsPerCategory[$field->catid][] = $field;
}

// On the front, sometimes the admin fields path is not included
JFormHelper::addFieldPath(JPATH_ADMINISTRATOR . '/components/' . $component . '/models/fields');

// Looping trough the categories
foreach ($fieldsPerCategory as $catid => $catFields)
{
Expand Down
2 changes: 2 additions & 0 deletions language/en-GB/en-GB.ini
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ JARCHIVED="Archived"
JAUTHOR="Author"
JCANCEL="Cancel"
JCATEGORY="Category"
JCLEAR="Clear"
JDATE="Date"
JDEFAULT="Default"
JDETAILS="Details"
Expand Down Expand Up @@ -85,6 +86,7 @@ JPUBLISHED="Published"
JREGISTER="Register"
JREQUIRED="Required"
JSAVE="Save"
JSELECT="Select"
JSHOW="Show"
JSITE="Site"
JSTATUS="Status"
Expand Down

0 comments on commit 4947b1b

Please sign in to comment.