CC-3174 : showbuilder
fixing up library table to include all interesting columns if a user would like to choose to see them. query is done with propel.
This commit is contained in:
parent
2ac4940fd5
commit
d4c7b832c9
4 changed files with 124 additions and 79 deletions
|
@ -240,6 +240,7 @@ class Application_Model_User {
|
|||
|
||||
public static function getUsersDataTablesInfo($datatables_post) {
|
||||
|
||||
$displayColumns = array("id", "login", "first_name", "last_name", "type");
|
||||
$fromTable = "cc_subjs";
|
||||
|
||||
// get current user
|
||||
|
@ -250,7 +251,7 @@ class Application_Model_User {
|
|||
$username = $auth->getIdentity()->login;
|
||||
}
|
||||
|
||||
$res = Application_Model_StoredFile::searchFiles($fromTable, $datatables_post);
|
||||
$res = Application_Model_StoredFile::searchFiles($displayColumns, $fromTable, $datatables_post);
|
||||
|
||||
// mark record which is for the current user
|
||||
foreach($res['aaData'] as &$record){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue