Skip to content

Commit

Permalink
Better error message for form_attribute.not_empty
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmackay committed Jun 18, 2015
1 parent 1cb439b commit ddd412c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

class Ushahidi_Validator_Form_Attribute_Update extends Validator
{
protected $default_error_source = 'form_attribute';
protected $valid;
protected $form_stage_repo;

Expand Down
5 changes: 5 additions & 0 deletions application/messages/form_attribute.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php defined('SYSPATH') OR die('No direct script access.');

return [
'not_empty' => ':field must not be empty',
];

0 comments on commit ddd412c

Please sign in to comment.