1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Fixes #4165 - Custom field problem with single quote value.

This commit is contained in:
Cameron 2020-05-15 12:25:46 -07:00
parent d9037999dd
commit 7081737f12

View File

@ -440,9 +440,11 @@
$ui->getModel()->set($fieldname, null);
$tp = e107::getParser();
foreach($this->_data as $key=>$value)
{
$ui->getModel()->set($fieldname.'__'.$key, $value);
$ui->getModel()->set($fieldname.'__'.$key, $tp->toDB($value));
// e107::getDebug()->log($fieldname.'__'.$key.": ".$value);
}