diff options
author | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-01-05 00:21:12 +0000 |
---|---|---|
committer | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-01-05 00:21:12 +0000 |
commit | cc44a3371f6bb93dfcc28961004b00064942e27b (patch) | |
tree | a937594b1e3ea8e055cae7337b6d13fd72a194b4 /lib/Reaction/UI/Widget/Field | |
parent | 36d54b146cfba17f5c7757eced453429ee31c780 (diff) | |
download | reaction-cc44a3371f6bb93dfcc28961004b00064942e27b.tar.gz reaction-cc44a3371f6bb93dfcc28961004b00064942e27b.zip |
fixed choosemany, fixed some widget stuff i broke before, renamed ordered_fields to computed_field_order to avoid ambiguity
Diffstat (limited to 'lib/Reaction/UI/Widget/Field')
-rw-r--r-- | lib/Reaction/UI/Widget/Field/Mutable.pm | 2 | ||||
-rw-r--r-- | lib/Reaction/UI/Widget/Field/Mutable/DateTime.pm | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/Reaction/UI/Widget/Field/Mutable.pm b/lib/Reaction/UI/Widget/Field/Mutable.pm index 5d658dc..5c245d8 100644 --- a/lib/Reaction/UI/Widget/Field/Mutable.pm +++ b/lib/Reaction/UI/Widget/Field/Mutable.pm @@ -6,7 +6,7 @@ class Mutable is 'Reaction::UI::Widget::Field', which { before fragment widget { arg 'field_id' => event_id 'value'; - arg 'field_name' => event_id 'value'; + arg 'field_name' => event_id 'value' unless defined $_{field_name}; arg 'field_type' => 'text'; }; diff --git a/lib/Reaction/UI/Widget/Field/Mutable/DateTime.pm b/lib/Reaction/UI/Widget/Field/Mutable/DateTime.pm index 0095594..f4a28e8 100644 --- a/lib/Reaction/UI/Widget/Field/Mutable/DateTime.pm +++ b/lib/Reaction/UI/Widget/Field/Mutable/DateTime.pm @@ -4,6 +4,10 @@ use Reaction::UI::WidgetClass; class DateTime is 'Reaction::UI::Widget::Field::Mutable', which { + after fragment widget { + arg 'field_name' => event_id 'value_string'; + }; + }; 1; |