Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
25 | public function updateCMSFields(FieldList $fields) |
||
26 | { |
||
27 | if (Permission::check('ADMIN')) { |
||
28 | $memberField = new DropdownField('CreatorID', 'Creator', Member::get()->map('ID', 'Username', '-- Please select --')); |
||
29 | $fields->addFieldToTab('Root.Creator', $memberField); |
||
30 | } |
||
31 | |||
32 | return $fields; |
||
33 | } |
||
34 | } |
||
35 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.