File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1045,14 +1045,15 @@ class LodelSession {
10451045 return types ;
10461046 }
10471047
1048- async getDetails ( lo : "entities" | "entries" | "persons" | "tablefields" | "options" , id : number ) {
1048+ async getDetails ( lo : "entities" | "entries" | "persons" | "tablefields" | "indextablefields" | " options", id : number ) {
10491049 await this . lodelAdminRequired ( ) ;
10501050
10511051 const loMap = {
10521052 "entities" : "types" ,
10531053 "entries" : "entrytypes" ,
10541054 "persons" : "persontypes" ,
10551055 "tablefields" : "tablefields" ,
1056+ "indextablefields" : "indextablefields" ,
10561057 "options" : "options"
10571058 } ;
10581059
@@ -1113,7 +1114,8 @@ class LodelSession {
11131114
11141115 if ( deap ) {
11151116 const proms = fields . map ( async ( field ) => {
1116- field . data = await this . getDetails ( "tablefields" , field . id ) ;
1117+ const lo = ( field . type === "entries" || field . type === "persons" ) ? "indextablefields" : "tablefields" ;
1118+ field . data = await this . getDetails ( lo , field . id ) ;
11171119 if ( field . groupName ) {
11181120 field . data . groupName = field . groupName ;
11191121 }
You can’t perform that action at this time.
0 commit comments