|
|
@@ -126,12 +126,12 @@ class Zend_Form_Decorator_Fieldset extends Zend_Form_Decorator_Abstract
|
|
|
return $content;
|
|
|
}
|
|
|
|
|
|
- $legend = $this->getLegend();
|
|
|
- $attribs = $this->getOptions();
|
|
|
- $name = $element->getFullyQualifiedName();
|
|
|
+ $legend = $this->getLegend();
|
|
|
+ $attribs = $this->getOptions();
|
|
|
+ $name = $element->getFullyQualifiedName();
|
|
|
+ $id = (string)$element->getId();
|
|
|
|
|
|
- $id = $element->getId();
|
|
|
- if (!empty($id)) {
|
|
|
+ if (!array_key_exists('id', $attribs) && '' !== $id) {
|
|
|
$attribs['id'] = 'fieldset-' . $id;
|
|
|
}
|
|
|
|