mirror of
https://github.com/e107inc/e107.git
synced 2025-08-27 08:14:46 +02:00
Quick fix for handling array data and converting to comma separated data including filtering list results. (Admin-UI)
This commit is contained in:
@@ -785,7 +785,7 @@ class e_model extends e_object
|
||||
{
|
||||
return $this->$data_src;
|
||||
}
|
||||
|
||||
|
||||
$simple = false;
|
||||
if(strpos($key, '//') === 0)
|
||||
{
|
||||
@@ -2397,7 +2397,13 @@ class e_front_model extends e_model
|
||||
{
|
||||
$qry['_FIELD_TYPES'][$key] = $type; //_FIELD_TYPES much more optional now...
|
||||
}
|
||||
|
||||
if($qry['_FIELD_TYPES'][$key] == 'comma') //XXX quick fix.
|
||||
{
|
||||
$qry['_FIELD_TYPES'][$key] = 'str';
|
||||
}
|
||||
$qry['data'][$key] = $this->getData($key);
|
||||
|
||||
}
|
||||
|
||||
switch($action)
|
||||
@@ -2416,7 +2422,8 @@ class e_front_model extends e_model
|
||||
$qry['WHERE'] = $this->getFieldIdName().'='.$id;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
$this->addMessageDebug('SQL Qry: '.print_a($qry,true), $session_messages);
|
||||
return $qry;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user