diff --git a/ajax_dataload.php b/ajax_dataload.php
index 18c9a9f44..087189311 100755
--- a/ajax_dataload.php
+++ b/ajax_dataload.php
@@ -177,8 +177,18 @@ if (!empty($query)) {
$column['data-color'] = isset($column['data-color']) ? $column['data-color'] : color_inverse(trim($column['data-background']));
}
+ elseif (preg_match('/^mailto_(.+?)$/', trim($field), $m)) {
+ $column['class'] = '';
+ $value = ($r[$field] ? ' '.$r[$field].'' : '');
+ }
+
+ elseif (preg_match('/^tel_(.+?)$/', trim($field), $m)) {
+ $column['class'] = '';
+ $value = ($r[$field] ? ' '.$r[$field].'' : '');
+ }
+
// Link della colonna
- if ($field != '_print_') {
+ if ($field != '_print_' && !preg_match('/^tel_(.+?)$/', trim($field), $m) && !preg_match('/^mailto_(.+?)$/', trim($field), $m)) {
$id_record = $r['id'];
$hash = '';
diff --git a/include/manager.php b/include/manager.php
index 511a51ec2..53e4eec06 100755
--- a/include/manager.php
+++ b/include/manager.php
@@ -128,6 +128,10 @@ if (!empty($type) && $type != 'menu' && $type != 'custom') {
$attr_td .= " width='30'";
$name = str_replace('icon_', 'icon_title_', $name);
$field = str_replace('icon_', '', $field);
+ } elseif (preg_match('/^mailto_/', (string) $field)) {
+ $field = str_replace('mailto_', '', $field);
+ } elseif (preg_match('/^tel_/', (string) $field)) {
+ $field = str_replace('tel_', '', $field);
}
if (isMobile()) {