[Act] news/edit bug

Detlev Hauschildt detlev at xs4all.nl
Tue Jul 18 19:25:26 CEST 2017


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!

Detlev





More information about the Act mailing list