Bug report #16002

Default Values "Expression dialog" evaluates valid expression as invalid

Added by Andrew McAninch over 7 years ago. Updated over 6 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Unknown
Affected QGIS version:2.18.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:23918

Description

I'm using QGIS 2.18.2-nightly on windows. I am using the refFunctions plugin to set the default value from an intersecting feature in another layer. If I enter the function in the "edit widget properties" dialog everything works as expected and I get a valid preview. However, If I open the expression widget to build an expression it evaluates the expression as invalid.

Eval Error: "'NoneType' object has no attribute 'intersects'"

The field calculator does not evaluate the same expression as invalid.

History

#1 Updated by Andrew McAninch over 7 years ago

  • Status changed from Open to Closed

I realized that this is probably a plugin bug so Im closing this.

#2 Updated by Jürgen Fischer over 6 years ago

  • Category set to Unknown

Also available in: Atom PDF