Project

General

Profile

Bug #1992

NULL value in vlanid on subnets table raise an error

Added by Romain Vrignaud over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

Having NULL value into vlanid on subnets
table was raising an error.
update subnets set vlanid=''; fixed the problem

Error trace :
Started GET "/locations/new" for 192.168.200.117 at Mon Dec 03 14:29:40 +0100 2012
Processing by LocationsController#new as HTML
Rendered common/_edit_habtm.erb (9.8ms)
Rendered common/_edit_habtm.erb (4.4ms)
Rendered taxonomy/_form.html.erb (22.5ms)
Rendered locations/new.html.erb within layouts/application (22.9ms)
Operation FAILED: undefined method `<=>' for nil:NilClass
Rendered home/_topbar.rhtml (3.3ms)
Rendered common/500.rhtml within layouts/application (10.8ms)
Completed 500 Internal Server Error in 40ms (Views: 11.6ms | ActiveRecord: 0.4ms)

Associated revisions

Revision 9f9effa8 (diff)
Added by Joseph Magen over 9 years ago

fixes #1992 sort does not fail if vlanid is null

History

#1 Updated by Joseph Magen over 9 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Joseph Magen

#2 Updated by Anonymous over 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF