mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Fix test
This commit is contained in:
@@ -100,10 +100,18 @@ namespace BTCPayServer.Controllers
|
|||||||
WalletId walletId, string transactionId, string addlabel = null, string addlabelclick = null, string addcomment = null, string removelabel = null)
|
WalletId walletId, string transactionId, string addlabel = null, string addlabelclick = null, string addcomment = null, string removelabel = null)
|
||||||
{
|
{
|
||||||
addlabel = addlabel ?? addlabelclick;
|
addlabel = addlabel ?? addlabelclick;
|
||||||
|
// Hack necessary when the user enter a empty comment and submit.
|
||||||
|
// For some reason asp.net consider addcomment null instead of empty string...
|
||||||
|
try
|
||||||
|
{
|
||||||
if (Request?.Form?.TryGetValue(nameof(addcomment), out _) is true)
|
if (Request?.Form?.TryGetValue(nameof(addcomment), out _) is true)
|
||||||
{
|
{
|
||||||
addcomment = string.Empty;
|
addcomment = string.Empty;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
/////////
|
||||||
|
|
||||||
DerivationSchemeSettings paymentMethod = await GetDerivationSchemeSettings(walletId);
|
DerivationSchemeSettings paymentMethod = await GetDerivationSchemeSettings(walletId);
|
||||||
if (paymentMethod == null)
|
if (paymentMethod == null)
|
||||||
return NotFound();
|
return NotFound();
|
||||||
|
|||||||
Reference in New Issue
Block a user