Skip to content

Commit

Permalink
Fix how use_global_id query parameter is retrieved.
Browse files Browse the repository at this point in the history
This resolves #20138, logging of Pick query incorrect when using global id.
  • Loading branch information
biagas committed Dec 19, 2024
1 parent 02347a2 commit 3078f41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/visitpy/common/Logging.C
Original file line number Diff line number Diff line change
Expand Up @@ -1356,19 +1356,19 @@ static std::string log_QueryRPC(ViewerRPC *rpc)
qn = "NodePick";
else if (pt == "DomainZone")
{
bool global = false;
int global = 0;
if (queryParams.HasNumericEntry("use_global_id"))
global = queryParams.GetEntry("use_global_id")->ToBool();
global = queryParams.GetEntry("use_global_id")->ToInt();
if (global)
qn = "PickByGlobalZone";
else
qn = "PickByZone";
}
else if (pt == "DomainNode")
{
bool global = false;
int global = 0;
if (queryParams.HasNumericEntry("use_global_id"))
global = queryParams.GetEntry("use_global_id")->AsBool();
global = queryParams.GetEntry("use_global_id")->AsInt();
if (global)
qn = "PickByGlobalNode";
else
Expand Down

0 comments on commit 3078f41

Please sign in to comment.