|
|
@ -2418,6 +2418,7 @@ class CAHTarget : public IActionHandler
|
|
|
|
ucstring entityName;
|
|
|
|
ucstring entityName;
|
|
|
|
entityName.fromUtf8 (getParam (Params, "entity"));
|
|
|
|
entityName.fromUtf8 (getParam (Params, "entity"));
|
|
|
|
bool preferCompleteMatch = (getParam (Params, "prefer_complete_match") != "0");
|
|
|
|
bool preferCompleteMatch = (getParam (Params, "prefer_complete_match") != "0");
|
|
|
|
|
|
|
|
bool quiet = (getParam (Params, "quiet") == "true");
|
|
|
|
|
|
|
|
|
|
|
|
if (!entityName.empty())
|
|
|
|
if (!entityName.empty())
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -2433,6 +2434,12 @@ class CAHTarget : public IActionHandler
|
|
|
|
// Get the entity with a partial match
|
|
|
|
// Get the entity with a partial match
|
|
|
|
entity = EntitiesMngr.getEntityByName (entityName, false, false);
|
|
|
|
entity = EntitiesMngr.getEntityByName (entityName, false, false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (entity == NULL)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
//Get the entity with a sheetName
|
|
|
|
|
|
|
|
entity = EntitiesMngr.getEntityBySheetName(entityName.toUtf8());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (entity)
|
|
|
|
if (entity)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -2457,7 +2464,8 @@ class CAHTarget : public IActionHandler
|
|
|
|
// to avoid campfire selection exploit #316
|
|
|
|
// to avoid campfire selection exploit #316
|
|
|
|
nldebug("is not prop selectable");
|
|
|
|
nldebug("is not prop selectable");
|
|
|
|
CInterfaceManager *pIM= CInterfaceManager::getInstance();
|
|
|
|
CInterfaceManager *pIM= CInterfaceManager::getInstance();
|
|
|
|
pIM->displaySystemInfo(CI18N::get("uiTargetErrorCmd"));
|
|
|
|
if(!quiet)
|
|
|
|
|
|
|
|
pIM->displaySystemInfo(CI18N::get("uiTargetErrorCmd"));
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -2467,7 +2475,8 @@ class CAHTarget : public IActionHandler
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CInterfaceManager *pIM= CInterfaceManager::getInstance();
|
|
|
|
CInterfaceManager *pIM= CInterfaceManager::getInstance();
|
|
|
|
pIM->displaySystemInfo(CI18N::get("uiTargetErrorCmd"));
|
|
|
|
if(!quiet)
|
|
|
|
|
|
|
|
pIM->displaySystemInfo(CI18N::get("uiTargetErrorCmd"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|