mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
DataFilter fix builtins (again)
.. the DataFilterFunctions[] were not processed correctly after validation of calls to named functions was added and the correction applied previously only worked for functions defined by the lexer/parser, not those defined in DataFilterFunctions[] .. this fixes that, but it would be nice if this was cleaned up in to one unified place in the datafilter.
This commit is contained in:
@@ -1206,7 +1206,7 @@ void Leaf::validateFilter(Context *context, DataFilterRuntime *df, Leaf *leaf)
|
||||
}
|
||||
|
||||
// calling a user defined function, does it exist >=?
|
||||
if (!df->functions.contains(leaf->function)) {
|
||||
if (found == false && !df->functions.contains(leaf->function)) {
|
||||
|
||||
DataFiltererrors << QString(tr("unknown function %1")).arg(leaf->function);
|
||||
leaf->inerror = true;
|
||||
|
||||
Reference in New Issue
Block a user