----------------------------------------
* CRM-13130: New Label Format entries do not store the 'name' property in values colum, and produce blank name badges
http://issues.civicrm.org/jira/browse/CRM-13130
public function generateLabel($formattedRow) {
switch ($formattedRow['labelFormat']) {
case 'Avery 5395':
+ default:
self::labelAvery5395($formattedRow);
break;
}
// serialize label format fields into a single string to store in the 'value' column of the Option Value table
$v = json_decode($this->value, TRUE);
foreach (self::$optionValueFields as $name => $field) {
+ if (!isset($v[$name])) {
+ $v[$name] = NULL;
+ }
$v[$name] = self::getValue($name, $values, $v[$name]);
}
$this->value = json_encode($v);