[processing] Fix API break which breaks some 3rd party providers (e.g. R and Javascript providers)

This commit is contained in:
Nyall Dawson 2019-07-08 12:40:12 +10:00
parent ed2a0ed098
commit aa8d5cd22e

View File

@ -87,7 +87,7 @@ PARAMETER_FOLDER_DESTINATION = 'folderDestination'
PARAMETER_RASTER_DESTINATION = 'rasterDestination'
def getParameterFromString(s, context):
def getParameterFromString(s, context=''):
# Try the parameter definitions used in description files
if '|' in s and (s.startswith("QgsProcessingParameter") or s.startswith("*QgsProcessingParameter") or s.startswith('Parameter') or s.startswith('*Parameter')):
isAdvanced = False