Commit b21c2edc9596de6921a344aaec15ff584d54c308
1 parent
619cec41
Exists in
master
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.
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
ieducar/lib/CoreExt/Entity.php
... | ... | @@ -1053,6 +1053,10 @@ abstract class CoreExt_Entity implements CoreExt_Entity_Validatable |
1053 | 1053 | case 'numeric': |
1054 | 1054 | $return = $this->getFloat($cmpVal); |
1055 | 1055 | break; |
1056 | + | |
1057 | + case 'string': | |
1058 | + $return = (string)$cmpVal; | |
1059 | + break; | |
1056 | 1060 | } |
1057 | 1061 | return $return; |
1058 | 1062 | } |
... | ... | @@ -1182,4 +1186,4 @@ abstract class CoreExt_Entity implements CoreExt_Entity_Validatable |
1182 | 1186 | } |
1183 | 1187 | return $data; |
1184 | 1188 | } |
1185 | -} | |
1186 | 1189 | \ No newline at end of file |
1190 | +} | ... | ... |