diff --git a/resources/function_help/json/layer_property b/resources/function_help/json/layer_property index 58bd08d84aa..7336d74a589 100644 --- a/resources/function_help/json/layer_property +++ b/resources/function_help/json/layer_property @@ -1,7 +1,7 @@ { "name": "layer_property", "type": "function", - "groups": ["General"], + "groups": ["Map Layers"], "description": "Returns a matching layer property or metadata value.", "arguments": [ {"arg":"layer", "description":"a string, representing either a layer name or layer ID"}, diff --git a/src/core/expression/qgsexpressionfunction.cpp b/src/core/expression/qgsexpressionfunction.cpp index bf63f20195b..cb196443db7 100644 --- a/src/core/expression/qgsexpressionfunction.cpp +++ b/src/core/expression/qgsexpressionfunction.cpp @@ -7146,7 +7146,7 @@ const QList &QgsExpression::Functions() functions << new QgsStaticExpressionFunction( QStringLiteral( "layer_property" ), QgsExpressionFunction::ParameterList() << QgsExpressionFunction::Parameter( QStringLiteral( "layer" ) ) << QgsExpressionFunction::Parameter( QStringLiteral( "property" ) ), - fcnGetLayerProperty, QStringLiteral( "General" ) ) + fcnGetLayerProperty, QStringLiteral( "Map Layers" ) ) << new QgsStaticExpressionFunction( QStringLiteral( "decode_uri" ), QgsExpressionFunction::ParameterList() << QgsExpressionFunction::Parameter( QStringLiteral( "layer" ) )