Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'patch-2' of https://github.com/rsandrea/zf2 into hotfix…

…/dojo-dijit-required
  • Loading branch information...
commit 7845f2f57ac7c1cd0347fe8e87f4e4c4d3750cd2 2 parents afa7b0e + 2cef17e
@weierophinney weierophinney authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 library/Zend/Dojo/Form/Decorator/DijitElement.php
View
7 library/Zend/Dojo/Form/Decorator/DijitElement.php
@@ -169,8 +169,11 @@ public function render($content)
$name = $element->getFullyQualifiedName();
$dijitParams = $this->getDijitParams();
- $dijitParams['required'] = $element->isRequired();
-
+
+ if ($element->isRequired()) {
+ $dijitParams['required'] = true;
+ }
+
$id = $element->getId();
if ($view->plugin('dojo')->hasDijit($id)) {
trigger_error(sprintf('Duplicate dijit ID detected for id "%s; temporarily generating uniqid"', $id), E_USER_NOTICE);
Please sign in to comment.
Something went wrong with that request. Please try again.