From 473d1b73a789c8ccc139262dd3f472d3b67a9951 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Tue, 9 Mar 2021 14:58:18 -0500 Subject: [PATCH] fix placeholder --- CRM/Grant/Form/Grant.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Grant/Form/Grant.php b/CRM/Grant/Form/Grant.php index d63b9e565b..04714b1b6a 100644 --- a/CRM/Grant/Form/Grant.php +++ b/CRM/Grant/Form/Grant.php @@ -149,14 +149,14 @@ class CRM_Grant_Form_Grant extends CRM_Core_Form { } $attributes = CRM_Core_DAO::getAttribute('CRM_Grant_DAO_Grant'); - $this->addSelect('grant_type_id', ['onChange' => "CRM.buildCustomData( 'Grant', this.value );"], TRUE); + $this->addSelect('grant_type_id', ['placeholder' => ts('- select type -'), 'onChange' => "CRM.buildCustomData( 'Grant', this.value );"], TRUE); //need to assign custom data type and subtype to the template $this->assign('customDataType', 'Grant'); $this->assign('customDataSubType', $this->_grantType); $this->assign('entityID', $this->_id); - $this->addSelect('status_id', [], TRUE); + $this->addSelect('status_id', ['placeholder' => ts('- select status -')], TRUE); $this->add('datepicker', 'application_received_date', ts('Application Received'), [], FALSE, ['time' => FALSE]); $this->add('datepicker', 'decision_date', ts('Grant Decision'), [], FALSE, ['time' => FALSE]); -- 2.25.1