Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function updateCollectionForm(&$form) |
||
19 | { |
||
20 | $fields = $form->Fields(); |
||
21 | $fields->insertAfter( |
||
22 | SelectboxDropdownField::create('CategoryID', 'Category', ProductCategory::get()->map()) |
||
23 | ->setEmptyString('All categories'), |
||
24 | 'Products__ID' |
||
25 | ); |
||
26 | |||
27 | $fields->removeByName([ |
||
28 | 'Name', |
||
29 | 'Title', |
||
30 | 'Products__ID', |
||
31 | ]); |
||
32 | } |
||
33 | |||
53 | } |