From 079f52de1484af9f23fd82864b86a689141beae6 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 7 May 2018 15:12:17 +1200 Subject: [PATCH] Fix e-notice Notice is visible on add payment processor page --- CRM/Core/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index d6abdc7b3e..58c332f48b 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -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); -- 2.25.1