Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions marketplace/code/ui/admin/TrainingServiceAdminUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ public function updateCMSFields(FieldList $fields) {
$companies = Company::get();

if($companies){
$fields->push(new DropdownField(
$companyField = new DropdownField(
'CompanyID',
'Company',
$companies->map("ID", "Name", "Please Select a Company")));
$companies->map("ID", "Name", "Please Select a Company"));
// Keep the full company list native to avoid rebuilding thousands of Chosen results.
$companyField->addExtraClass('no-chzn');
$fields->push($companyField);
}

if($types && $levels && $this->owner->ID>0){
Expand Down