[Act] news/edit bug

Sébastien Aperghis-Tramoni sebastien at aperghis.net
Tue Jul 18 21:38:14 CEST 2017


Detlev Hauschildt wrote:

> Hello again,
> 
> my second issue relates to the news/edit template. If the news admin
> clicks on a news message on
> http://act.perlconference.org/tpc-2017-amsterdam/newsadmin this will
> open a page coming from the template news/edit, which in turn is
> called by Act::Handler::News. The default template news/edit
> expects the news message to be passed to the template in a hash
> called $items, but that is currently not filled in Act::Handler::News.
> 
> I compared the current Act::Handler::News to an earlier version and
> the only difference is:
> 
> 137c137
> <             $fields->{items} = $news->items;
> ---
>  >             $fields->{title} = $news->{items}{ $Request{language}
> }{title};
> 
> 
> So it appears that only the title is passed now, but not the hash
> $items, so the template always generates an empty form. So, I think
> the old line needs to come back. (The new one can stay, I suppose, in
> case someone needs it.)
> 
> It would be nice if you could do that!

I just did the change, however I'm still too unfriend with git to
try and perform a merge without wondering what I'll break. I'll let
Laurent or Philippe do that.

Thanks again for investigating.

-- 
Sébastien Aperghis-Tramoni

Close the world, txEn eht nepO.


More information about the Act mailing list