From d989d19351b213a7fad362658fd35a5bf06f3a63 Mon Sep 17 00:00:00 2001 From: chapcz Date: Wed, 11 Jan 2017 22:00:26 +0100 Subject: [PATCH] Prompt from base class --- src/Controls/NotTranslatableSelectBox.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Controls/NotTranslatableSelectBox.php b/src/Controls/NotTranslatableSelectBox.php index 34f2547..dd2dc94 100644 --- a/src/Controls/NotTranslatableSelectBox.php +++ b/src/Controls/NotTranslatableSelectBox.php @@ -19,12 +19,6 @@ class NotTranslatableSelectBox extends Nette\Forms\Controls\SelectBox */ private $options = []; - /** - * @var mixed - */ - private $prompt = FALSE; - - /** * We have to repeat that method in our class due to parent::$options property accesibility * Otherwise we would be working with BaseControl::$options @@ -58,7 +52,7 @@ public function setItems(array $items, $useKeys = TRUE) */ public function getControl() { - $items = $this->prompt === FALSE ? array() : array('' => $this->translate($this->prompt)); + $items = $this->getPrompt() === FALSE ? array() : array('' => $this->translate($this->getPrompt())); foreach ($this->options as $key => $value) { $items[is_array($value) ? $key : $key] = $value; }