SEBSERV-58 fixed point 1
This commit is contained in:
parent
bb1713da3c
commit
2ad04e848a
1 changed files with 3 additions and 2 deletions
|
@ -159,7 +159,7 @@ public class IndicatorForm implements TemplateComposer {
|
||||||
FORM_DESC_TEXT_KEY,
|
FORM_DESC_TEXT_KEY,
|
||||||
typeDescription)
|
typeDescription)
|
||||||
.asArea()
|
.asArea()
|
||||||
.asHTML(true)
|
//.asHTML(true)
|
||||||
.readonly(true)
|
.readonly(true)
|
||||||
.withInputSpan(6))
|
.withInputSpan(6))
|
||||||
|
|
||||||
|
@ -201,9 +201,10 @@ public class IndicatorForm implements TemplateComposer {
|
||||||
private void updateForm(final Form form) {
|
private void updateForm(final Form form) {
|
||||||
final String typeValue = form.getFieldValue(Domain.INDICATOR.ATTR_TYPE);
|
final String typeValue = form.getFieldValue(Domain.INDICATOR.ATTR_TYPE);
|
||||||
if (StringUtils.isNotBlank(typeValue)) {
|
if (StringUtils.isNotBlank(typeValue)) {
|
||||||
|
final String text = this.i18nSupport.getText(INDICATOR_TYPE_DESC_PREFIX + typeValue);
|
||||||
form.setFieldValue(
|
form.setFieldValue(
|
||||||
TYPE_DESCRIPTION_FIELD_NAME,
|
TYPE_DESCRIPTION_FIELD_NAME,
|
||||||
this.i18nSupport.getText(INDICATOR_TYPE_DESC_PREFIX + typeValue));
|
Utils.formatLineBreaks(text));
|
||||||
final IndicatorType type = IndicatorType.valueOf(typeValue);
|
final IndicatorType type = IndicatorType.valueOf(typeValue);
|
||||||
form.setFieldVisible(type.tags && !type.tagsReadonly, Domain.INDICATOR.ATTR_TAGS);
|
form.setFieldVisible(type.tags && !type.tagsReadonly, Domain.INDICATOR.ATTR_TAGS);
|
||||||
if (!type.tags || type.tagsReadonly) {
|
if (!type.tags || type.tagsReadonly) {
|
||||||
|
|
Loading…
Reference in a new issue