[jifty-devel] upgrade 0.711290->0.804080 & refers_to column disappears from Create form
Jesse Vincent
jesse at bestpractical.com
Mon Apr 14 10:23:05 EDT 2008
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?
> 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.jifty.org/pipermail/jifty-devel/attachments/20080414/92d776e9/attachment.pgp
More information about the jifty-devel
mailing list