fwrite($this->file, $this->indentation." <custom_fields>\n");
foreach ($custom_fields as $custom_field) {
$custom_field_part = $this->indentation.' '."<custom_field id=\"".$this->customFieldMap[$custom_field['id']]."\"";
+ $custom_field_part .= " entity_type=\"".$custom_field['entity_type']."\"";
$custom_field_part .= " type=\"".$custom_field['type']."\"";
$custom_field_part .= " label=\"".htmlspecialchars($custom_field['label'])."\"";
$custom_field_part .= " required=\"".$custom_field['required']."\"";
$custom_field_id = $this->insertCustomField(array(
'group_id' => $this->current_group_id,
'org_id' => $this->org_id,
+ 'entity_type' => $attrs['ENTITY_TYPE'],
'type' => $attrs['TYPE'],
'label' => $attrs['LABEL'],
'required' => $attrs['REQUIRED'],
$group_id = (int) $fields['group_id'];
$org_id = (int) $fields['org_id'];
+ $entity_type = (int) $fields['entity_type'];
$type = (int) $fields['type'];
$label = $fields['label'];
$required = (int) $fields['required'];
$status = $fields['status'];
$sql = "insert into tt_custom_fields".
- " (group_id, org_id, type, label, required, status)".
- " values($group_id, $org_id, $type, ".$mdb2->quote($label).", $required, ".$mdb2->quote($status).")";
+ " (group_id, org_id, entity_type, type, label, required, status)".
+ " values($group_id, $org_id, $entity_type, $type, ".$mdb2->quote($label).", $required, ".$mdb2->quote($status).")";
$affected = $mdb2->exec($sql);
if (is_a($affected, 'PEAR_Error'))
return false;
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.19.6.5019 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.19.6.5020 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>