enricofer / refFunctions

6 stars 10 forks source link

invalid expression error in default value expression dialog #6

Closed spaceof7 closed 7 years ago

spaceof7 commented 7 years ago

I am not sure if this is a plugin bug or a QGIS bug, but I figured I should check here first.

I'm using QGIS 2.18.2-nightly on windows.

I am having trouble when using the geomintersects() function in a "default value" expression.
To reproduce: open the field widget properties and open the default value expression dialog. build an expression with the geomintersects function I get the error, Eval Error: "'NoneType' object has no attribute 'intersects'" close the expression dialog and type the expression directly in the default value box. When entered here the expression works properly and you can see a preview. The field calculator also handles the expression correctly.

Now that I think about it again I wonder if it is a QGIS bug after all.

Also, Thanks for your work, I find this plugin really useful.

enricofer commented 7 years ago

Assuming that it is a plugin issue I can't imagine where it is. Anyway it's more likely to be a Qgis core issue.