From a3c2274963452f85cb7e28a1dec54a24c3272a1d Mon Sep 17 00:00:00 2001
From: Andrey Kleshchev <andreykproductengine@lindenlab.com>
Date: Sat, 27 Nov 2021 00:43:05 +0200
Subject: [PATCH] SL-16390 The "Create classified" link does not open floater
 for classified creation

---
 indra/newview/llpanelpicks.cpp | 20 ++++++++------------
 1 file changed, 8 insertions(+), 12 deletions(-)

diff --git a/indra/newview/llpanelpicks.cpp b/indra/newview/llpanelpicks.cpp
index 8294977f994..f342dd9ce01 100644
--- a/indra/newview/llpanelpicks.cpp
+++ b/indra/newview/llpanelpicks.cpp
@@ -136,13 +136,11 @@ class LLPickHandler : public LLCommandHandler,
 	void createPick()
 	{
 		// open the new pick panel on the Picks floater
-		LLFloater* picks_floater = LLFloaterReg::showInstance("picks");
+        LLSD params;
+        params["open_tab_name"] = "panel_picks";
+        params["show_tab_panel"] = "create_classified";
 
-		LLPanelPicks* picks = picks_floater->findChild<LLPanelPicks>("panel_picks");
-		if (picks)
-		{
-			picks->createNewPick();
-		}
+        LLFloaterSidePanelContainer::showPanel("picks", params);
 	}
 
 	void editPick(LLPickData* pick_info)
@@ -261,13 +259,11 @@ class LLClassifiedHandler :
 	void createClassified()
 	{
 		// open the new classified panel on the Picks floater
-		LLFloater* picks_floater = LLFloaterReg::showInstance("picks");
+        LLSD params;
+        params["open_tab_name"] = "panel_picks";
+        params["show_tab_panel"] = "create_pick";
 
-		LLPanelPicks* picks = picks_floater->findChild<LLPanelPicks>("panel_picks");
-		if (picks)
-		{
-			picks->createNewClassified();
-		}
+        LLFloaterSidePanelContainer::showPanel("picks", params);
 	}
 
 	void openClassified(LLAvatarClassifiedInfo* c_info)
-- 
GitLab