[PATCH conductor] BZ 803647 - Persist pool[pool_family_id] on failure during creation
Tzu-Mainn Chen
tzumainn at redhat.com
Mon Mar 19 19:54:38 UTC 2012
ACK, works for me!
Mainn
----- Original Message -----
From: "Matt Wagner" <matt.wagner at redhat.com>
To: aeolus-devel at lists.fedorahosted.org
Sent: Monday, March 19, 2012 2:11:59 PM
Subject: [PATCH conductor] BZ 803647 - Persist pool[pool_family_id] on failure during creation
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