function toRooArray($r) {
$ret = $this->toArray();
+ if (empty($r['csvCols'])) {
+ return $ret;
+ }
+
if(!empty($ret['on_table']) && !empty($ret['on_id']) && !empty($ret['on_col'])) {
$ret['template_id_view_name'] = 'database';
$ret['template_id_template'] = $ret['on_table'] . ':' . $ret['on_col'];
{
$ret = array();
+ if (empty($r['csvCols'])) {
+ return $ret;
+ }
+
// avoid duplicate mdsum
foreach($ar as $v) {
if(!empty($ret[$v['src_id_mdsum']])) {