Skip to content
Snippets Groups Projects
Commit d65eaaf5 authored by mcramer's avatar mcramer
Browse files

Bugfix: remoting lib field validation "ISINT" differed from tform validation...

Bugfix: remoting lib field validation "ISINT" differed from tform validation and leads to 0 values treated as invalid
Bugfix: remoting lib did include_once instead of include at form definition files, that leads to malfunction when using multiple definition files at importing and actions like that
parent 5e575589
No related branches found
No related tags found
No related merge requests found
......@@ -44,9 +44,9 @@ Copyright (c) Tri-Plex technology
* Tabellendefinition
*
* Datentypen:
* - INTEGER (Wandelt Ausdrücke in Int um)
* - INTEGER (Wandelt Ausdrcke in Int um)
* - DOUBLE
* - CURRENCY (Formatiert Zahlen nach Währungsnotation)
* - CURRENCY (Formatiert Zahlen nach Whrungsnotation)
* - VARCHAR (kein weiterer Format Check)
* - DATE (Datumsformat, Timestamp Umwandlung)
*
......@@ -60,10 +60,10 @@ Copyright (c) Tri-Plex technology
* - Wert oder Array
*
* SEPARATOR
* - Trennzeichen für multiple Felder
* - Trennzeichen fr multiple Felder
*
* Hinweis:
* Das ID-Feld ist nicht bei den Table Values einzufügen.
* Das ID-Feld ist nicht bei den Table Values einzufgen.
*/
class remoting_lib {
......@@ -121,7 +121,7 @@ class remoting_lib {
function loadFormDef($file) {
global $app,$conf;
include_once($file);
include($file);
$this->formDef = $form;
unset($this->formDef['tabs']);
......@@ -474,7 +474,7 @@ class remoting_lib {
break;
case 'ISINT':
if(function_exists('filter_var')) {
if(!filter_var($field_value, FILTER_VALIDATE_INT)) {
if($vield_value != '' && filter_var($field_value, FILTER_VALIDATE_INT) === false) {
$errmsg = $validator['errmsg'];
if(isset($this->wordbook[$errmsg])) {
$this->errorMessage .= $this->wordbook[$errmsg]."<br />\r\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment