fix(search): avoid duplicate external ticket tabs
This commit is contained in:
@@ -15,7 +15,7 @@ namespace FasdDesktopUi.Basics.Helper
|
||||
{
|
||||
private const string DefaultTicketActivityType = "SPSActivityTypeTicket";
|
||||
|
||||
internal static bool TryOpenTicketRelationExternally(cF4sdApiSearchResultRelation relation)
|
||||
internal static bool TryOpenTicketRelationExternally(cF4sdApiSearchResultRelation relation, bool forceExternal = false)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -28,7 +28,7 @@ namespace FasdDesktopUi.Basics.Helper
|
||||
|
||||
// check if we have a valid user id in the id list => if not we could open this ticket only extern.
|
||||
var hasUser = HasValidUserIdentity(relation);
|
||||
if (!hasUser)
|
||||
if (forceExternal || !hasUser)
|
||||
processing = enumTicketProcessing.Extern;
|
||||
|
||||
if (processing == enumTicketProcessing.Intern)
|
||||
|
||||
Reference in New Issue
Block a user