Fix e-notice
authoreileen <emcnaughton@wikimedia.org>
Mon, 7 May 2018 03:12:17 +0000 (15:12 +1200)
committereileen <emcnaughton@wikimedia.org>
Mon, 7 May 2018 03:13:23 +0000 (15:13 +1200)
Notice is visible on add payment processor page

CRM/Core/Form.php

index d6abdc7b3ecc0a901c080d36ae12829aa4e8691d..58c332f48bbf7c06634c62e64059b2a490cc3859 100644 (file)
@@ -1475,7 +1475,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
         //Set default columns and rows for textarea.
         $props['rows'] = isset($props['rows']) ? $props['rows'] : 4;
         $props['cols'] = isset($props['cols']) ? $props['cols'] : 60;
-        if (!$props['maxlength'] && isset($fieldSpec['length'])) {
+        if (empty($props['maxlength']) && isset($fieldSpec['length'])) {
           $props['maxlength'] = $fieldSpec['length'];
         }
         return $this->add('textarea', $name, $label, $props, $required);