File tree 3 files changed +6
-5
lines changed
DcGeneral/Events/Table/Attribute/Select
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 29
29
"php" :" >=5.3" ,
30
30
"contao/core" : " >=3.2,<3.6" ,
31
31
"contao-community-alliance/composer-plugin" : " ~2.0" ,
32
+ "contao-community-alliance/dc-general" : " ~2.0" ,
32
33
"metamodels/core" :" ~2.0"
33
34
},
34
35
"require-dev" : {
41
42
},
42
43
"autoload" : {
43
44
"psr-0" : {
44
- "MetaModels" : " src"
45
+ "MetaModels\\ " : " src"
45
46
}
46
47
},
47
48
"autoload-dev" : {
48
49
"psr-0" : {
49
- "MetaModels\\ Test" : " tests"
50
+ "MetaModels\\ Test\\ " : " tests"
50
51
}
51
52
},
52
53
"extra" :{
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ public function getFieldDefinition($arrOverrides = array())
181
181
$ arrFieldDef ['inputType ' ] = 'DcGeneralTreePicker ' ;
182
182
$ arrFieldDef ['eval ' ]['sourceName ' ] = $ this ->getSelectSource ();
183
183
$ arrFieldDef ['eval ' ]['fieldType ' ] = 'radio ' ;
184
- $ arrFieldDef ['eval ' ]['idProperty ' ] = $ this ->getAliasColumn ();
184
+ $ arrFieldDef ['eval ' ]['idProperty ' ] = $ this ->getIdColumn ();
185
185
$ arrFieldDef ['eval ' ]['orderField ' ] = $ this ->getSortingColumn ();
186
186
$ arrFieldDef ['eval ' ]['minLevel ' ] = $ arrOverrides ['select_minLevel ' ];
187
187
$ arrFieldDef ['eval ' ]['maxLevel ' ] = $ arrOverrides ['select_maxLevel ' ];
Original file line number Diff line number Diff line change @@ -254,11 +254,11 @@ public function getColumnNamesFrom($table)
254
254
return
255
255
array
256
256
(
257
- $ GLOBALS ['TL_LANG ' ]['tl_metamodel_attribute ' ]['select_column_type ' ] => array_diff_key (
257
+ $ GLOBALS ['TL_LANG ' ]['tl_metamodel_attribute ' ]['select_column_type ' ][ ' sql ' ] => array_diff_key (
258
258
$ this ->getColumnNamesFromMetaModel ($ table ),
259
259
array_flip (array_keys ($ attributes ))
260
260
),
261
- $ GLOBALS ['TL_LANG ' ]['tl_metamodel_attribute ' ]['select_column_type ' ] => $ attributes
261
+ $ GLOBALS ['TL_LANG ' ]['tl_metamodel_attribute ' ]['select_column_type ' ][ ' attribute ' ] => $ attributes
262
262
);
263
263
}
264
264
You can’t perform that action at this time.
0 commit comments