Commit 4b2fda1e authored by colemanw's avatar colemanw

activity_duration field -> number

parent d104311a
......@@ -163,9 +163,9 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
),
),
'duration' => array(
'type' => 'text',
'type' => 'number',
'label' => ts('Duration'),
'attributes' => array('size' => 4, 'maxlength' => 8),
'attributes' => array('class' => 'four', 'min' => 1),
'required' => FALSE,
),
'location' => array(
......
......@@ -175,7 +175,7 @@ class CRM_Case_Form_Activity_OpenCase {
$csElement->freeze();
}
$form->add('text', 'duration', ts('Activity Duration'), array('size' => 4, 'maxlength' => 8));
$form->add('number', 'duration', ts('Activity Duration'), ['class' => 'four', 'min' => 1]);
$form->addRule('duration', ts('Please enter the duration as number of minutes (integers only).'), 'positiveInteger');
if ($form->_currentlyViewedContactId) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment