mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
Fix test
This commit is contained in:
parent
21d555ee6b
commit
f1457582fe
1 changed files with 10 additions and 2 deletions
|
@ -100,10 +100,18 @@ namespace BTCPayServer.Controllers
|
|||
WalletId walletId, string transactionId, string addlabel = null, string addlabelclick = null, string addcomment = null, string removelabel = null)
|
||||
{
|
||||
addlabel = addlabel ?? addlabelclick;
|
||||
if (Request?.Form?.TryGetValue(nameof(addcomment), out _) is true)
|
||||
// Hack necessary when the user enter a empty comment and submit.
|
||||
// For some reason asp.net consider addcomment null instead of empty string...
|
||||
try
|
||||
{
|
||||
addcomment = string.Empty;
|
||||
if (Request?.Form?.TryGetValue(nameof(addcomment), out _) is true)
|
||||
{
|
||||
addcomment = string.Empty;
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
/////////
|
||||
|
||||
DerivationSchemeSettings paymentMethod = await GetDerivationSchemeSettings(walletId);
|
||||
if (paymentMethod == null)
|
||||
return NotFound();
|
||||
|
|
Loading…
Add table
Reference in a new issue