Re: [Maypole] 2.07 PR

From: n.a (n.a at ad.wakwak.com)
Date: Mon Jan 17 2005 - 14:56:45 GMT


>- Removed Maypole::Model->description.
>
>Fixes:
>- Model->process() shouldn't set $r->objects() to a list with a single,
>undefined element

I'm not sure it is in the same line with this, but 'do_edit' sets
$r->objects() to a list with a single, undefined element.

My suggesion is as follows
--------------------------------------------------------------
*** CDBI.pm 2005-01-17 23:12:35.000000000 +0900
--- CDBI.pm~ 2005-01-17 02:27:08.000000000 +0900
*************** sub do_edit : Exported {
*** 134,140 ****
       else {
           $r->{template} = "view";
       }
! $r->objects( $obj?[$obj]:[] );
   }

   sub delete : Exported {
--- 134,140 ----
       else {
           $r->{template} = "view";
       }
! $r->objects( [$obj] );
   }

   sub delete : Exported {
--------------------------------------------------------------

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT