summaryrefslogtreecommitdiffstats
path: root/app/models/custom_field.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/custom_field.rb')
-rw-r--r--app/models/custom_field.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb
index 24300c6d2..be9cf550f 100644
--- a/app/models/custom_field.rb
+++ b/app/models/custom_field.rb
@@ -263,6 +263,8 @@ class CustomField < ActiveRecord::Base
end
def <=>(field)
+ return nil unless field.is_a?(CustomField)
+
position <=> field.position
end