From 4692d466947c7dc1436ff1576ae1bd9f0e8b1323 Mon Sep 17 00:00:00 2001 From: Simon Bouland Date: Wed, 11 Mar 2015 14:20:17 +0100 Subject: [PATCH] Update ChoiceFormField.php Hi, A select could be "globaly" disabled not only one of its options. http://www.w3schools.com/tags/att_select_disabled.asp --- src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php b/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php index ae7f4d168e181..acc95852059e1 100644 --- a/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php +++ b/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php @@ -61,6 +61,9 @@ public function hasValue() */ public function isDisabled() { + if (parent::isDisabled()) { + return true; + } foreach ($this->options as $option) { if ($option['value'] == $this->value && $option['disabled']) { return true; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy