Project

General

Profile

Bug #1432

subnet gateway infos only saved when fill gateway and dns fields

Added by Florian Koch about 11 years ago. Updated about 11 years ago.

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

Description

Hi,

fix bug from ttp://www.theforeman.org/issues/1361#change-4337

the informations in the subnet form only saved if you fill the gateway and one dns fields.
the cause is the validation in models/subnets.rb
whyever the :allow_blank should work, but i need to add :allow_nil also to get this working

rgds florian


Related issues

Related to Foreman - Feature #1361: Allow subnet information to be accessed from provisioning templates & add gateway, dns to subnetsClosed2011-11-28

Associated revisions

Revision 8cc2722d (diff)
Added by Florian Koch about 11 years ago

fixes #1432 - subnet gateway infos only saved when fill gateway and dns fields

the informations in the subnet form only saved if you fill the gateway and one dns fields
the cause is the validation in models/subnets.rb
whyever the :allow_blank should work, but i need to add :allow_nil also to get this working

Signed-off-by: Florian Koch <>

History

#2 Updated by Florian Koch about 11 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF