mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Fix validation of cf types - transformer only does server -> client
This commit is contained in:
parent
aafca99105
commit
5bfd90e207
@ -241,6 +241,11 @@ class etemplate_widget_customfields extends etemplate_widget_transformer
|
|||||||
$valid = is_array($value) ? implode(',',$value) : $value;
|
$valid = is_array($value) ? implode(',',$value) : $value;
|
||||||
error_log(__METHOD__."() $form_name $field: ".array2string($value).' --> '.array2string($value));
|
error_log(__METHOD__."() $form_name $field: ".array2string($value).' --> '.array2string($value));
|
||||||
}
|
}
|
||||||
|
} elseif ($this->type == 'customfields-types') {
|
||||||
|
// Transformation doesn't handle validation
|
||||||
|
$valid =& self::get_array($validated, $this->id ? $form_name : $field, true);
|
||||||
|
$valid = $value_in;
|
||||||
|
error_log(__METHOD__."() $form_name $field: ".array2string($value).' --> '.array2string($value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user