Project

General

Profile

Actions

Bug #6769

closed

Template: creating a template without any name raises same error two times

Added by Dominic Cleal over 10 years ago. Updated over 10 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1121532
Description of problem:
I was trying to create a template and didn't pass any name, then UI throws following error adjacent to 'name' text box

"can't be blank and can't be blank"

Version-Release number of selected component (if applicable):
sat6 GA snap1

How reproducible:
always

Steps to Reproduce:
1. create a template without passing name
2.
3.

Actual results:
UI throws same error two times

Expected results:
one time "can't be blank is sufficient

Additional info:

production.log:

Processing by ConfigTemplatesController#create as */*
Parameters: {"utf8"=>"✓", "search"=>"", "authenticity_token"=>"CLZgGQh3Z80gTOE6iG1eaDPvDAf4ISpF73pxHLoz0K4=", "config_template"=>{"name"=>"", "template"=>"test", "audit_comment"=>"", "snippet"=>"0", "template_kind_id"=>"1", "operatingsystem_ids"=>["", "", "", ""]}, "keybinding"=>"Default"}
Failed to save: Name can't be blank, Name can't be blank
Rendered common/_edit_habtm.html.erb (5.1ms)


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #6888: Provisioning template name checks for presence twice, duplicate messageClosedDominic Cleal08/01/2014Actions
Actions

Also available in: Atom PDF