Extended profile - don't show empty company entry in view
This commit is contained in:
parent
17afe06805
commit
82023d388a
|
@ -313,6 +313,8 @@ class ExtendedProfileWidget extends Form
|
||||||
{
|
{
|
||||||
$this->out->elementStart('div', 'experience-item');
|
$this->out->elementStart('div', 'experience-item');
|
||||||
$this->out->element('div', 'label', _m('Company'));
|
$this->out->element('div', 'label', _m('Company'));
|
||||||
|
|
||||||
|
if (!empty($field['company'])) {
|
||||||
$this->out->element('div', 'field', $field['company']);
|
$this->out->element('div', 'field', $field['company']);
|
||||||
|
|
||||||
$this->out->element('div', 'label', _m('Start'));
|
$this->out->element('div', 'label', _m('Start'));
|
||||||
|
@ -337,6 +339,7 @@ class ExtendedProfileWidget extends Form
|
||||||
'(' . _m('Current') . ')'
|
'(' . _m('Current') . ')'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$this->out->elementEnd('div');
|
$this->out->elementEnd('div');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user