summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xincludes/classes/Contact.php2
-rwxr-xr-xtemplates/edit_type_header.tpl6
2 files changed, 4 insertions, 4 deletions
diff --git a/includes/classes/Contact.php b/includes/classes/Contact.php
index 4cea7d0..bb48666 100755
--- a/includes/classes/Contact.php
+++ b/includes/classes/Contact.php
@@ -105,7 +105,7 @@ class Contact extends LibertyContent {
$this->mInfo['creator'] = $result->fields['creator_real_name'] ?? $result->fields['creator_user'];
$this->mInfo['editor'] = $result->fields['modifier_real_name'] ?? $result->fields['modifier_user'];
$this->mInfo['display_url'] = $this->getDisplayUrl();
- $this->mInfo['organisation'] = trim($this->mInfo['organisation']);
+ $this->mInfo['organisation'] = trim($this->mInfo['organisation'] ?? '');
$name = explode( '|', $this->mInfo['name'] ?? '' );
$this->mInfo['prefix'] = $name[0] ?? '';
$this->mInfo['forename'] = $name[1] ?? '';
diff --git a/templates/edit_type_header.tpl b/templates/edit_type_header.tpl
index 171ec58..4ca117f 100755
--- a/templates/edit_type_header.tpl
+++ b/templates/edit_type_header.tpl
@@ -1,13 +1,13 @@
<div class="form-group">
- {formlabel label="Content Types" for=content_types}
+ {formlabel label="Contact Types" for=content_types}
{forminput}
{if isset( $gContent->mInfo.contact_types ) }
{foreach from=$gContent->mInfo.contact_types key=type_id item=type}
- <input type="checkbox" name="contact_types[{$type_id}]" value={$type.source} {if isset($type.content_id) } checked="checked"{/if} /> {$type.cross_ref_title}<br/>
+ <input type="checkbox" name="contact_types[{$type_id}]" value="{$type.item}" {if isset($type.content_id) } checked="checked"{/if} /> {$type.cross_ref_title}<br/>
{/foreach}
{else}
{foreach from=$gContent->mInfo.contact_type_list key=type_id item=type}
- <input type="checkbox" name="contact_types[$type_id]" value={$type.source} />{$type.name}<br/>
+ <input type="checkbox" name="contact_types[$type_id]" value="{$type.item}" />{$type.name}<br/>
{/foreach}
{/if}
{/forminput}