Little change for management better the errors in fields
This commit is contained in:
parent
243767bc12
commit
479f449b13
25 changed files with 124 additions and 24 deletions
|
|
@ -20,8 +20,17 @@ class SlugifyField extends PhangoField {
|
|||
|
||||
static function check($value)
|
||||
{
|
||||
|
||||
$value=slugify($value);
|
||||
|
||||
return slugify($value);
|
||||
if($value=='')
|
||||
{
|
||||
|
||||
$this->error=1;
|
||||
|
||||
}
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
function get_type_sql()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue