CMS Made Simple Forums
https://forum.cmsmadesimple.org/

[fixed] CMSMS 1.10 Beta3: $entry->title missing on detail
https://forum.cmsmadesimple.org/viewtopic.php?f=75&t=56996
Page 1 of 1

Author:  fredp [ Wed Sep 28, 2011 8:55 am ]
Post subject:  [fixed] CMSMS 1.10 Beta3: $entry->title missing on detail

Hi,

There is another issue with News articles displayed on a detail page: $entry->title is always unset.

I tracked the problem down to a modules/News/lib/class.news_ops.php method:
\$1:
  static private function &get_article_from_row($row,$get_fields = 'PUBLIC')
  {...
It seems that the 'news_title' case is missing from the switch statement; so, the title value is never stored in the new news_article object.

I didn't check if there were any other $row keys missing from the switch statement. You might want to check that while you're "in" the function. ;)

Cheers!

Author:  Jos [ Thu Oct 06, 2011 10:27 pm ]
Post subject:  Re: CMSMS 1.10 Beta3: $entry->title missing on detail

Confirmed. I just encountered this issue too.

I checked on rev 7451.
Still no $entry->title available in the detailtemplate of News

Author:  Rolf [ Fri Oct 07, 2011 3:26 pm ]
Post subject:  Re: CMSMS 1.10 Beta3: $entry->title missing on detail

Calguy fixed this yesterday
I tried it just now in rev. 7451 and it works for me...

@Jos, could you double check this?

grtz. Rolf

Author:  Jos [ Fri Oct 07, 2011 4:14 pm ]
Post subject:  Re: [fixed???] CMSMS 1.10 Beta3: $entry->title missing on de

I'm sorry, it works now.

I must have done something wrong updating the files. :-[

Fixed!

Author:  Rolf [ Fri Oct 07, 2011 4:52 pm ]
Post subject:  Re: [fixed???] CMSMS 1.10 Beta3: $entry->title missing on de

pfeww, thanks Jos ;)

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/