BUG 0000 PM tables imporovements

- Setting order to available fields on report table edit UI
This commit is contained in:
Erik Amaru Ortiz
2011-07-12 12:32:14 -04:00
parent e3add14892
commit e09bba3706
4 changed files with 20 additions and 13 deletions

View File

@@ -84,6 +84,7 @@ class pmTables extends Controller
);
}
}
sort($fieldsList);
$this->setJSVar('avFieldsList', $fieldsList);
$repTabPluginPermissions = $this->_getSimpleReportPluginDef();
$this->setJSVar('_plugin_permissions', $repTabPluginPermissions);
@@ -103,7 +104,7 @@ class pmTables extends Controller
);
}
}
sort($fieldsList);
$this->setJSVar('avFieldsList', $fieldsList);
$repTabPluginPermissions = $this->_getSimpleReportPluginDef();
break;
@@ -189,3 +190,4 @@ class pmTables extends Controller
}

View File

@@ -134,7 +134,7 @@ class pmTablesProxy extends HttpProxyController
);
}
}
$resultList['processFields'] = $aProcessGridFields;
$resultList = $aProcessGridFields;
} else {
$aProcessFields = Array();
@@ -146,10 +146,12 @@ class pmTablesProxy extends HttpProxyController
'FIELD_NAME' => $dfield['name']
);
}
$resultList['processFields'] = $aProcessFields;
$resultList = $aProcessFields;
}
sort($resultList);
return $resultList;
return array('processFields'=>$resultList);
}
/**
@@ -936,4 +938,4 @@ class aTablesMap{
$this->aMap[$item] = $equal;
}
}
}