fix description placeholder for empty descriptions

pull/4338/head
manuschiller 9 years ago committed by Oliver Günther
parent 1e69977a1f
commit 1188a3d466
  1. 2
      frontend/app/components/work-packages/wp-display-attr/wp-display-attr.directive.ts

@ -85,7 +85,7 @@ export default class WorkPackageDisplayAttributeController {
if(this.workPackage[this.attribute].hasOwnProperty('html')){
this.isDisplayAsHtml = true;
if(this.attribute == "description"){
text = (this.workPackage[this.attribute].length > 0) ? this.I18n.t('js.work_packages.placeholders.description') : this.workPackage[this.attribute].html;
text = (this.workPackage[this.attribute].html.length > 0) ? this.I18n.t('js.work_packages.placeholders.description') : this.workPackage[this.attribute].html;
}else{
text = this.workPackage[this.attribute].html;
}

Loading…
Cancel
Save