From c8aacf1e99399d21cd5076cd8912c74f4d51e52f Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Fri, 14 Jun 2013 03:56:56 -0400
Subject: [PATCH] - Fixed: changing a client template might not update all clients using this template client additional_template column might contain something like 15/20/211 instead of /15/20/211/
---
interface/lib/classes/form.inc.php | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/interface/lib/classes/form.inc.php b/interface/lib/classes/form.inc.php
index 4feb329..898cbe6 100644
--- a/interface/lib/classes/form.inc.php
+++ b/interface/lib/classes/form.inc.php
@@ -140,6 +140,7 @@
* @return record
*/
function decode($record) {
+ global $app;
if(is_array($record)) {
foreach($record as $key => $val) {
switch ($this->tableDef[$key]['datatype']) {
@@ -154,7 +155,7 @@
break;
case 'INTEGER':
- $new_record[$key] = intval($val);
+ $new_record[$key] = $app->functions->intval($val);
break;
case 'DOUBLE':
@@ -306,7 +307,7 @@
}
break;
case 'INTEGER':
- $new_record[$key] = intval($val);
+ $new_record[$key] = $app->functions->intval($val);
break;
case 'DOUBLE':
$new_record[$key] = $app->db->quote($val);
--
Gitblit v1.9.1