summaryrefslogtreecommitdiffstats
path: root/application/forms/BasketForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/forms/BasketForm.php')
-rw-r--r--application/forms/BasketForm.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/application/forms/BasketForm.php b/application/forms/BasketForm.php
index 8ff6cca..4ac942c 100644
--- a/application/forms/BasketForm.php
+++ b/application/forms/BasketForm.php
@@ -52,9 +52,9 @@ class BasketForm extends DirectorObjectForm
$types = $this->getAvailableTypes();
$options = [
- 'IGNORE' => $this->translate('Ignore'),
- 'ALL' => $this->translate('All of them'),
- '[]' => $this->translate('Custom Selection'),
+ Basket::SELECTION_NONE => $this->translate('Ignore'),
+ Basket::SELECTION_ALL => $this->translate('All of them'),
+ Basket::SELECTION_CUSTOM => $this->translate('Custom Selection'),
];
$this->addHtmlHint($this->translate(
@@ -92,13 +92,13 @@ class BasketForm extends DirectorObjectForm
/** @var Basket $object */
$values = [];
foreach ($this->getAvailableTypes() as $type => $label) {
- $values[$type] = 'IGNORE';
+ $values[$type] = Basket::SELECTION_NONE;
}
foreach ($object->getChosenObjects() as $type => $selection) {
if ($selection === true) {
- $values[$type] = 'ALL';
+ $values[$type] = Basket::SELECTION_ALL;
} elseif (is_array($selection)) {
- $values[$type] = '[]';
+ $values[$type] = Basket::SELECTION_CUSTOM;
}
}