We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3ce029 commit 081ba09Copy full SHA for 081ba09
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