From e3df74eaeeae2f0a385813a7f14ea9586f411b0b Mon Sep 17 00:00:00 2001 From: Nimetu Date: Sat, 22 Feb 2020 16:11:17 +0200 Subject: [PATCH] Fixed: Form select option text as value if value attribute is not set. --- code/nel/src/gui/group_html.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index 91adff06f..8009c5ac8 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -6425,6 +6425,12 @@ namespace NLGUI if (_Forms.empty() || _Forms.back().Entries.empty()) return; + // use option text as value + if (!elm.hasAttribute("value")) + { + _Forms.back().Entries.back().SelectValues.back() = _SelectOptionStr.toUtf8(); + } + // insert the parsed text into the select control CDBGroupComboBox *cb = _Forms.back().Entries.back().ComboBox; if (cb)