From b21c2edc9596de6921a344aaec15ff584d54c308 Mon Sep 17 00:00:00 2001 From: Lucas D'Avila Date: Thu, 31 Jan 2013 22:10:16 -0200 Subject: [PATCH] Alterado metodo _getValue, para tratar tipo de dado string, evitando por exemplo que valores como "0123" sejam gravados como 123 em campos strings, isto estava ocorrendo ao gravar o código da matricula dos funcionários. --- ieducar/lib/CoreExt/Entity.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ieducar/lib/CoreExt/Entity.php b/ieducar/lib/CoreExt/Entity.php index 9bda71e..b69f22b 100644 --- a/ieducar/lib/CoreExt/Entity.php +++ b/ieducar/lib/CoreExt/Entity.php @@ -1053,6 +1053,10 @@ abstract class CoreExt_Entity implements CoreExt_Entity_Validatable case 'numeric': $return = $this->getFloat($cmpVal); break; + + case 'string': + $return = (string)$cmpVal; + break; } return $return; } @@ -1182,4 +1186,4 @@ abstract class CoreExt_Entity implements CoreExt_Entity_Validatable } return $data; } -} \ No newline at end of file +} -- libgit2 0.21.2