Skip to content

Commit

Permalink
Add admin paths for frontent configuration edit form (#25404)
Browse files Browse the repository at this point in the history
  • Loading branch information
richard67 authored and HLeithner committed Jul 2, 2019
1 parent e8b904a commit 79de916
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/com_config/model/form.php
Expand Up @@ -153,6 +153,8 @@ protected function loadForm($name, $source = null, $options = array(), $clear =
// Get the form.
// Register the paths for the form -- failing here
$paths = new SplPriorityQueue;
$paths->insert(JPATH_COMPONENT_ADMINISTRATOR . '/model/form', 'normal');
$paths->insert(JPATH_COMPONENT_ADMINISTRATOR . '/model/field', 'normal');
$paths->insert(JPATH_COMPONENT . '/model/form', 'normal');
$paths->insert(JPATH_COMPONENT . '/model/field', 'normal');
$paths->insert(JPATH_COMPONENT . '/model/rule', 'normal');
Expand All @@ -165,6 +167,8 @@ protected function loadForm($name, $source = null, $options = array(), $clear =
// Solution until JForm supports splqueue
JForm::addFormPath(JPATH_COMPONENT . '/models/forms');
JForm::addFieldPath(JPATH_COMPONENT . '/models/fields');
JForm::addFormPath(JPATH_COMPONENT_ADMINISTRATOR . '/model/form');
JForm::addFieldPath(JPATH_COMPONENT_ADMINISTRATOR . '/model/field');
JForm::addFormPath(JPATH_COMPONENT . '/model/form');
JForm::addFieldPath(JPATH_COMPONENT . '/model/field');

Expand Down

0 comments on commit 79de916

Please sign in to comment.