CRM-20860 Add in ability to create field type of password from metadata
[civicrm-core.git] / CRM / Core / Form / Renderer.php
index d67f82b478dd0e2f0209b78d6e40fe49ab244cd3..d1be3d7bcca3050a5386eac1160d05dbfb552178 100644 (file)
@@ -179,7 +179,7 @@ class CRM_Core_Form_Renderer extends HTML_QuickForm_Renderer_ArraySmarty {
     $class = $element->getAttribute('class');
     $type = $element->getType();
     if (!$class) {
-      if ($type == 'text') {
+      if ($type == 'text' || $type == 'password') {
         $size = $element->getAttribute('size');
         if (!empty($size)) {
           $class = CRM_Utils_Array::value($size, self::$_sizeMapper);