[jifty-devel] upgrade 0.711290->0.804080 & refers_to column disappears from Create form
Peter Mottram
peter at sysnix.com
Mon Apr 14 11:28:27 EDT 2008
On Mon, 14 Apr 2008, Jesse Vincent wrote:
> On Apr 14, 2008, at 7:24 AM, Peter Mottram wrote:
>> Thought I'd test out 0.804080 from CPAN and have lost a column from
>> default create form.
>>
>> Two simple models demonstrate this...
>>
>
> The code below sure _looks_ at least close to right. Are you up for whipping
> up a small test app that we can drop into the Jifty test suite to triage the
> bug and make sure it never happens again?
I'll see what I can sort. It's about time I got round to writing some
tests for my real app anyway. :-)
>> package MyApp::Model::Foo;
>> use Jifty::DBI::Schema;
>>
>> use MyApp::Record schema {
>>
>> column one =>
>> type is 'text';
>>
>> column two =>
>> references MyApp::Model::BarCollection by 'alpha',
>> render_as 'Select',
>> valid_values are defer {
>> my $bars = MyApp::Model::BarCollection->new();
>> $bars->unlimit;
>> [{
>> display_from => 'alpha',
>> value_from => 'id',
>> collection => $bars,
>> }];
>> };
>> };
>>
>>
>> package MyApp::Model::Bar;
>> use Jifty::DBI::Schema;
>>
>> use MyApp::Record schema {
>>
>> column alpha => type is 'text';
>> };
>>
>>
>> Having added a couple of rows to Bar I expect to be handed a shiny select
>> widget for column two containing the values from Bar. This is indeed the
>> behaviour in 0.711290 but using 0.804080 there is no select widget and no
>> errors in my server console.
>>
>> Is there a new method for doing this that I need to use?
>>
>> R.
>> PeteM
>> _______________________________________________
>> jifty-devel mailing list
>> jifty-devel at lists.jifty.org
>> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
>>
>
More information about the jifty-devel
mailing list