Automatically enable multiple values support when setting min/max multiples
authorMatthias Schmidt <gravatronics@live.com>
Thu, 22 Aug 2019 15:16:45 +0000 (17:16 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 22 Aug 2019 15:16:45 +0000 (17:16 +0200)
wcfsetup/install/files/lib/system/form/builder/field/TMultipleFormField.class.php

index a3f334f3dd7ee1128b54810913174706a0dd83ab..5447d09e8c72dd666298b76db27b9431b3bd90ab 100644 (file)
@@ -101,6 +101,7 @@ trait TMultipleFormField {
                }
                
                $this->maximumMultiples = $maximum;
+               $this->multiple();
                
                return $this;
        }
@@ -124,6 +125,7 @@ trait TMultipleFormField {
                }
                
                $this->minimumMultiples = $minimum;
+               $this->multiple();
                
                return $this;
        }