}
}
elseif ($name == 'image_URL') {
- list($width, $height) = getimagesize($details->$name);
+ list($width, $height) = getimagesize(CRM_Utils_String::unstupifyUrl($details->$name));
list($thumbWidth, $thumbHeight) = CRM_Contact_BAO_Contact::getThumbSize($width, $height);
$image_URL = '<img src="' . $details->$name . '" height= ' . $thumbHeight . ' width= ' . $thumbWidth . ' />';
elseif (substr($fieldName, 0, 6) === 'county') {
if ($addressOptions['county']) {
$form->add('select', $name, $title,
- array(
- '' => ts('(choose state first)')), $required
+ array('' => ts('Choose state first')), $required
);
}
}
}
}
}
+ elseif ($name == 'contact_sub_type') {
+ $defaults[$fldName] = explode(CRM_Core_DAO::VALUE_SEPARATOR, trim($details[$name], CRM_Core_DAO::VALUE_SEPARATOR));
+ }
elseif ($name == 'world_region') {
$defaults[$fldName] = $details['worldregion_id'];
}