Skip to content

Commit

Permalink
Config doesn't output error message, when we have a required field (P…
Browse files Browse the repository at this point in the history
…HP validation, not JS!).

This is the same fix as here: #3026, except that in the old pull request I've somehow screwed it up...
  • Loading branch information
compojoom committed Mar 15, 2015
1 parent e9dbd50 commit 28a48b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/com_config/model/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public function validate($form, $data, $group = null)
// Get the validation messages from the form.
foreach ($form->getErrors() as $message)
{
JFactory::getApplication()->enqueueMessage($message, 'error');
JFactory::getApplication()->enqueueMessage($message->getMessage(), 'error');
}

return false;
Expand Down

0 comments on commit 28a48b4

Please sign in to comment.