Fixes in get errors from checked fields
This commit is contained in:
parent
4cb8820a2b
commit
e072fa9fc5
3 changed files with 5 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ class NormalizeField extends TextField {
|
|||
static public function check_text($value, $separator='-')
|
||||
{
|
||||
|
||||
$str_normalize=slugify(strip_tags($value));
|
||||
$str_normalize=PhangoApp\PhaUtils\Utils::slugify(strip_tags($value));
|
||||
|
||||
$arr_normalize=explode($separator, $str_normalize);
|
||||
|
||||
|
|
|
|||
|
|
@ -193,6 +193,7 @@ class PhangoField {
|
|||
|
||||
/**
|
||||
* This method is used for simple checking, used for WhereSql.
|
||||
* @warning DEPRECATED
|
||||
*/
|
||||
|
||||
public function simple_check($value)
|
||||
|
|
|
|||
|
|
@ -2061,6 +2061,8 @@ class Webmodel {
|
|||
|
||||
$arr_std_error[]=I18n::lang('error_model', 'check_error_field_required', 'Error: Field required').' '.$key.' ';
|
||||
|
||||
$this->components[$key]->error=1;
|
||||
|
||||
if($this->components[$key]->std_error=='')
|
||||
{
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue