fixed bug in visual vars submit handle

This commit is contained in:
Li Jianxuan 2015-01-19 07:45:19 +00:00
parent bc16052e53
commit aa365e0a59
1 changed files with 5 additions and 2 deletions

View File

@ -41,10 +41,13 @@ class VisualHandle extends \Westdc\Visual\VariableEncoder
$data = $e->getParam('data');
foreach($data['vars'] as $k=>$v)
{
if(isset($v['filter']))
{
if(preg_match("/;/",$v['filter']))
$data['vars'][$k]['filter'] = explode(";",$v['filter']);
}
}
$data['vars'] = $this->encode($data['vars']);