1
0
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:
CaMer0n
2012-08-02 02:09:58 +00:00
parent 9937a9c0e2
commit b44f0a2085
3 changed files with 45 additions and 13 deletions

View File

@@ -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;
}