[PATCH conductor] BZ 803647 - Persist pool[pool_family_id] on failure during creation
Matt Wagner
matt.wagner at redhat.com
Mon Mar 19 18:11:59 UTC 2012
If you hit a validation error while creating a pool, we need to keep
your pool_family_id attribute or else you will receive an exception
when you try to save a second time, because pool_family_id is nil.
---
src/app/views/pools/_form.html.haml | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/app/views/pools/_form.html.haml b/src/app/views/pools/_form.html.haml
index a167e37..45048c2 100644
--- a/src/app/views/pools/_form.html.haml
+++ b/src/app/views/pools/_form.html.haml
@@ -12,6 +12,7 @@
= form.collection_select :pool_family_id, @pool_families, :id, :name
- else
= form.label :pool_family_id, @pool.pool_family.name
+ = hidden_field_tag 'pool[pool_family_id]', @pool.pool_family_id
%fieldset
%p
--
1.7.7.6
More information about the aeolus-devel
mailing list