From 0ca9888d0a2b2d4277eebbfb811105ff69b37aba Mon Sep 17 00:00:00 2001 From: Thomas Peterson Date: Fri, 18 Jul 2025 20:38:59 +0200 Subject: [PATCH] Fixes --- cobertura.xml | 254 ++++++++++++++++++----------------- src/Option/Parser/Select.php | 6 + 2 files changed, 137 insertions(+), 123 deletions(-) diff --git a/cobertura.xml b/cobertura.xml index 0bb78e2..7b3bd6c 100644 --- a/cobertura.xml +++ b/cobertura.xml @@ -1,6 +1,6 @@ - + /home/thomas/projekte/calc/src @@ -6136,9 +6136,9 @@ - + - + @@ -6208,7 +6208,7 @@ - + @@ -6225,123 +6225,127 @@ + + - + - - - + - + + - - + + + + + - - - - - - - - + + + + + - - - + + + - - - - + + + + + + + - - - - - - - - + + + + + - - - + + + - - - - + + + + + + + - - - - + + + + - - - - + + + + - + - + - + - + @@ -6409,87 +6413,91 @@ - - - + + + - + + - - - - - - - - - - + + + + + + + + + + - - - + + + - - - - + + + - - - - - - - - + + + + + + + + + - - - + + + - - - - + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + @@ -6810,7 +6818,7 @@ - + @@ -7006,7 +7014,7 @@ - + @@ -7523,9 +7531,9 @@ - - - + + + @@ -7545,7 +7553,7 @@ - + @@ -7676,9 +7684,9 @@ - - - + + + @@ -7698,7 +7706,7 @@ - + @@ -8008,7 +8016,7 @@ - + @@ -8028,7 +8036,7 @@ - + @@ -8084,9 +8092,9 @@ - - - + + + @@ -8149,7 +8157,7 @@ - + @@ -8157,7 +8165,7 @@ - + @@ -8169,9 +8177,9 @@ - - - + + + @@ -8421,7 +8429,7 @@ - + @@ -8491,7 +8499,7 @@ - + diff --git a/src/Option/Parser/Select.php b/src/Option/Parser/Select.php index 2125eea..f3f99d5 100644 --- a/src/Option/Parser/Select.php +++ b/src/Option/Parser/Select.php @@ -144,6 +144,9 @@ class Select extends Base $this->element->addOption($optPapier); } } + if ($this->element->getDefault() != '') { + $this->element->addSelectedOption($this->element->getOptionById($this->element->getDefault())); + } } } } @@ -172,6 +175,9 @@ class Select extends Base $this->element->addOption($optPapier); } } + if ($this->element->getDefault() != '') { + $this->element->addSelectedOption($this->element->getOptionById($this->element->getDefault())); + } } } }