1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-21 22:05:38 -04:00

Fixed: Ensure correct series is used for Manual File Import from series details page

This commit is contained in:
Mark McDowall
2019-08-12 21:57:11 -07:00
parent 7cb5bd9c95
commit 44c91fb90c
6 changed files with 33 additions and 16 deletions
@@ -66,5 +66,17 @@ namespace Sonarr.Http.Extensions
return defaultValue;
}
public static int? GetNullableIntegerQueryParameter(this Request request, string parameter, int? defaultValue = null)
{
var parameterValue = request.Query[parameter];
if (parameterValue.HasValue)
{
return int.Parse(parameterValue.Value);
}
return defaultValue;
}
}
}