diff --git a/cobertura.xml b/cobertura.xml index 3600d3f..338d454 100644 --- a/cobertura.xml +++ b/cobertura.xml @@ -1,6 +1,6 @@ - + /home/thomas/projekte/calc/src @@ -6116,9 +6116,9 @@ - + - + @@ -6226,30 +6226,30 @@ - + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -6379,25 +6379,25 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -7900,9 +7900,9 @@ - + - + @@ -8021,7 +8021,7 @@ - + @@ -8031,7 +8031,9 @@ - + + + @@ -8097,18 +8099,20 @@ - + + + - + - + - + - + @@ -8121,9 +8125,9 @@ - + - + @@ -8131,9 +8135,9 @@ - + - + @@ -8141,9 +8145,9 @@ - + - + @@ -8151,9 +8155,9 @@ - + - + @@ -8161,25 +8165,25 @@ - + - + - + - + - + - + - + - + @@ -8300,7 +8304,7 @@ - + @@ -8310,7 +8314,7 @@ - + @@ -8320,7 +8324,7 @@ - + @@ -8374,11 +8378,11 @@ - + - + - + diff --git a/src/Option/Type/Select.php b/src/Option/Type/Select.php index c1e7346..956c3cb 100644 --- a/src/Option/Type/Select.php +++ b/src/Option/Type/Select.php @@ -180,10 +180,13 @@ class Select extends Base $obj->options = []; $obj->mode = 'normal'; - foreach ($this->options as $opt) { - $obj->options[] = $opt->generateJson(); + if ($this->container == '') { + foreach ($this->options as $opt) { + $obj->options[] = $opt->generateJson(); + } + } else { + $obj->options = []; } - return $obj; } }