Page 1 of 1

[fixed] CMSMS 1.10 Beta3: $entry->title missing on detail

Posted: Wed Sep 28, 2011 8:55 am
by fredp
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:

Code: Select all

  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!

Re: CMSMS 1.10 Beta3: $entry->title missing on detail

Posted: Thu Oct 06, 2011 10:27 pm
by Jos
Confirmed. I just encountered this issue too.

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

Re: CMSMS 1.10 Beta3: $entry->title missing on detail

Posted: Fri Oct 07, 2011 3:26 pm
by Rolf
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

Re: [fixed???] CMSMS 1.10 Beta3: $entry->title missing on de

Posted: Fri Oct 07, 2011 4:14 pm
by Jos
I'm sorry, it works now.

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

Fixed!

Re: [fixed???] CMSMS 1.10 Beta3: $entry->title missing on de

Posted: Fri Oct 07, 2011 4:52 pm
by Rolf
pfeww, thanks Jos ;)