Skip to content

Commit 390dfb1

Browse files
committed
Fixed issue with labels being displayed in dialog
CLOUDSTACK-6368
1 parent 418b275 commit 390dfb1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎ui/scripts/ui/dialog.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,17 +274,17 @@
274274
id = this[field.valueField];
275275
else
276276
id = this.id !== undefined ? this.id : this.name;
277-
var description = this.description;
278277

278+
var desc;
279279
if (args.descriptionField)
280-
description = this[args.descriptionField];
280+
desc = this[args.descriptionField];
281281
else
282-
description = this.description;
282+
desc = _l(this.description);
283283

284284
var $option = $('<option>')
285285
.appendTo($input)
286286
.val(_s(id))
287-
.html(_s(description));
287+
.html(_s(desc));
288288
});
289289

290290
if (field.defaultValue) {

0 commit comments

Comments
 (0)