Skip to content

Commit

Permalink
BUGFIX tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirish committed Oct 30, 2023
1 parent e21b443 commit 3eed1ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Extension/ProductFileCollectionDataExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ public function updateCollectionForm(&$form)
$fields = $form->Fields();

$fields->insertAfter(
'Title',
DropdownField::create('CategoryID', 'Category', ProductCategory::get()->map())
->setEmptyString('All categories'),
'Title'
->setEmptyString('All categories')
);

$fields->insertAfter(
'CategoryID',
DropdownField::create('Products__ID', 'Product', Product::get()->map())
->setEmptyString('All products'),
'CategoryID'
->setEmptyString('All products')
);

$fields->removeByName([
Expand Down
4 changes: 2 additions & 2 deletions src/Model/ProductFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ public function getCMSFields()
);

$fields->insertBefore(
'Content',
UploadField::create('Image')
->setAllowedMaxFileNumber(1)
->setFolderName('Uploads/ProductDocs/Images')
->setAllowedFileCategories('image')
->setDescription('Optional preview image of file'),
'Content'
->setDescription('Optional preview image of file')
);

return $fields;
Expand Down

0 comments on commit 3eed1ea

Please sign in to comment.