Skip to content

Commit

Permalink
Add path to load forms definition and form fields
Browse files Browse the repository at this point in the history
  • Loading branch information
joomdonation committed Mar 20, 2017
1 parent 787f5b9 commit c52d6fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/src/Cms/Model/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ protected function loadForm($name, $source = null, $options = array(), $clear =
\JForm::addFieldPath(JPATH_COMPONENT . '/models/fields');
\JForm::addFormPath(JPATH_COMPONENT . '/model/form');
\JForm::addFieldPath(JPATH_COMPONENT . '/model/field');
\JForm::addFormPath(JPATH_COMPONENT . '/Model/forms');
\JForm::addFieldPath(JPATH_COMPONENT . '/Model/fields');

try
{
Expand Down
2 changes: 2 additions & 0 deletions libraries/src/Cms/Model/ListModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ protected function loadForm($name, $source = null, $options = array(), $clear =
// Get the form.
\JForm::addFormPath(JPATH_COMPONENT . '/models/forms');
\JForm::addFieldPath(JPATH_COMPONENT . '/models/fields');
\JForm::addFormPath(JPATH_COMPONENT . '/Model/forms');
\JForm::addFieldPath(JPATH_COMPONENT . '/Model/fields');

try
{
Expand Down

0 comments on commit c52d6fd

Please sign in to comment.