Improved the internal session handel of JCB. Fixed gh-487 that removed the data size when creating a new field.

This commit is contained in:
2019-11-08 18:07:08 +02:00
parent 010a134e1a
commit 6539862534
38 changed files with 1582 additions and 564 deletions

View File

@ -209,7 +209,15 @@ abstract class ###Component###Helper
{
$query->from($db->quoteName('#_'.$main.'_'.$table));
}
$query->where($db->quoteName($whereString) . ' '.$operator.' (' . implode(',',$where) . ')');
// add strings to array search
if ('IN_STRINGS' === $operator || 'NOT IN_STRINGS' === $operator)
{
$query->where($db->quoteName($whereString) . ' ' . str_replace('_STRINGS', '', $operator) . ' ("' . implode('","',$where) . '")');
}
else
{
$query->where($db->quoteName($whereString) . ' ' . $operator . ' (' . implode(',',$where) . ')');
}
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())