Skip to content
Snippets Groups Projects
Commit 26d81d3d authored by Mnikolenko Productengine's avatar Mnikolenko Productengine
Browse files

MAINT-7199 Field "From" on the tab "Send via E-mail" should be initialized to the agent full name

parent 2ed5487f
No related branches found
No related tags found
No related merge requests found
...@@ -106,6 +106,14 @@ BOOL LLPanelSnapshotPostcard::postBuild() ...@@ -106,6 +106,14 @@ BOOL LLPanelSnapshotPostcard::postBuild()
// virtual // virtual
void LLPanelSnapshotPostcard::onOpen(const LLSD& key) void LLPanelSnapshotPostcard::onOpen(const LLSD& key)
{ {
LLUICtrl* name_form = getChild<LLUICtrl>("name_form");
if (name_form && name_form->getValue().asString().empty())
{
std::string name_string;
LLAgentUI::buildFullname(name_string);
getChild<LLUICtrl>("name_form")->setValue(LLSD(name_string));
}
LLPanelSnapshot::onOpen(key); LLPanelSnapshot::onOpen(key);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment