Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/97a28fee3b043ffca9214cb862cfb5faabfb725c
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
20 additions and
18 deletions
@ -108,7 +108,7 @@ namespace Radarr.Http.ClientSchema
Placeholder = fieldAttribute . Placeholder
} ;
if ( fieldAttribute . Type = = FieldType . Select | | fieldAttribute . Type = = FieldType . TagSelect )
if ( fieldAttribute . Type is FieldType . Select or FieldType . TagSelect )
{
if ( fieldAttribute . SelectOptionsProviderAction . IsNotNullOrWhiteSpace ( ) )
{
@ -157,31 +157,33 @@ namespace Radarr.Http.ClientSchema
{
if ( selectOptions . IsEnum )
{
var options = selectOptions . GetFields ( ) . Where ( v = > v . IsStatic ) . Select ( v = >
{
var name = v . Name . Replace ( '_' , ' ' ) ;
var value = Convert . ToInt32 ( v . GetRawConstantValue ( ) ) ;
var attrib = v . GetCustomAttribute < FieldOptionAttribute > ( ) ;
if ( attrib ! = null )
var options = selectOptions
. GetFields ( )
. Where ( v = > v . IsStatic & & ! v . GetCustomAttributes ( false ) . OfType < ObsoleteAttribute > ( ) . Any ( ) )
. Select ( v = >
{
return new SelectOption
var name = v . Name . Replace ( '_' , ' ' ) ;
var value = Convert . ToInt32 ( v . GetRawConstantValue ( ) ) ;
var attrib = v . GetCustomAttribute < FieldOptionAttribute > ( ) ;
if ( attrib ! = null )
{
Value = value ,
Name = attrib . Label ? ? name ,
Order = attrib . Order ,
Hint = attrib . Hint ? ? $"({value})"
} ;
}
else
{
return new SelectOption
{
Value = value ,
Name = attrib . Label ? ? name ,
Order = attrib . Order ,
Hint = attrib . Hint ? ? $"({value})"
} ;
}
return new SelectOption
{
Value = value ,
Name = name ,
Order = value
} ;
}
} ) ;
} ) ;
return options . OrderBy ( o = > o . Order ) . ToList ( ) ;
}