Bug #1432

subnet gateway infos only saved when fill gateway and dns fields

Added by Florian Koch over 1 year ago. Updated over 1 year ago.

Status:Closed Start:01/05/2012
Priority:Normal Due date:
Assigned to:Florian Koch % Done:

100%

Category:-
Target version:1.0
Backlog:No Difficulity:
Votes: 0

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 subnets Closed 11/28/2011

Associated revisions

Revision 8cc2722dfadc1b10c9337e1bc80748671a24852a
Added by Florian Koch over 1 year 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

Updated by Florian Koch over 1 year ago

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

Also available in: Atom PDF