We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d3ce029 + 081ba09 commit e18e2faCopy full SHA for e18e2fa
includes/Control.trait.php
@@ -228,9 +228,9 @@ public function ValidationReset() {
228
* the wrapper class. Which is fine, since its faster.
229
*/
230
public function ReinforceValidationState() {
231
-
+ $objChildControls = $this->GetChildControls(false);
232
if ($this->blnUseWrapper &&
233
- empty($this->GetChildControls(false))) { // don't apply states to parent controls
+ count($objChildControls) == 0) { // don't apply states to parent controls
234
if ($this->strValidationError) {
235
$this->AddWrapperCssClass(Bootstrap::HasError);
236
$this->strValidationState = Bootstrap::HasError;
0 commit comments