Submission form will now exit with an error if the product set in the settings doesn't exist on the Bugzilla server.
This commit is contained in:
parent
d2cb047651
commit
4f3236e51e
@ -297,7 +297,6 @@ void UBugSubmissionForm::ServerProductInfoResponse(FHttpRequestPtr Request, FHtt
|
||||
this->VersionsList.Add(VersionData.name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this->VersionsList.Contains(GetGameVersion()))
|
||||
{
|
||||
@ -318,6 +317,15 @@ void UBugSubmissionForm::ServerProductInfoResponse(FHttpRequestPtr Request, FHtt
|
||||
|
||||
this->CheckIfAllInitialResponsesAreIn();
|
||||
}
|
||||
else
|
||||
{
|
||||
this->ProcessingRequestErrorButton->OnClicked().AddUObject(this, &UBugSubmissionForm::CancelForm);
|
||||
|
||||
FStringFormatOrderedArguments Args;
|
||||
Args.Add(FStringFormatArg(GetDefault<UUnrealzillaGlobalSettings>()->ProductName));
|
||||
this->ShowProcessingOverlayMessage(FString::Format(TEXT("Could not find data for a product called {0}"), Args));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -282,6 +282,8 @@ protected:
|
||||
TObjectPtr<class UVerticalBox> ProcessingRequestErrorBox;
|
||||
UPROPERTY(BlueprintReadOnly, meta=(BindWidget))
|
||||
TObjectPtr<class UCommonTextBlock> ProcessingRequestErrorText;
|
||||
UPROPERTY(BlueprintReadOnly, meta=(BindWidget))
|
||||
TObjectPtr<class UCommonButtonBase> ProcessingRequestErrorButton;
|
||||
|
||||
UPROPERTY(BlueprintReadOnly)
|
||||
TArray<FString> VersionsList;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user