# R51946 - /trunk/infolog/inc/class.infolog\_favorite\_portlet.inc.php

**URL:** <http://discourse.egroupware.org/t/r51946-trunk-infolog-inc-class-infolog-favorite-portlet-inc-php/64326>\
**Category:** eGW-svn\
**Created:** [February 24, 2015, 7:29pm UTC](http://discourse.egroupware.org/t/r51946-trunk-infolog-inc-class-infolog-favorite-portlet-inc-php/64326 "2015-02-24T19:29:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathangray](http://discourse.egroupware.org/letter_avatar_proxy/v4/letter/n/77aa72/32.png) [@nathangray](http://discourse.egroupware.org/u/nathangray)\
**Post date:** [February 24, 2015, 7:29pm UTC](http://discourse.egroupware.org/t/r51946-trunk-infolog-inc-class-infolog-favorite-portlet-inc-php/64326/1 "2015-02-24T19:29:47Z")

</div>

Author: nathangray  
New Revision: 51946

URL: [http://svn.stylite.de/viewvc/egroupware?rev=51946&view=rev](http://svn.stylite.de/viewvc/egroupware?rev=51946&view=rev)  
Log:  
Make sure favorite portlet passes type check, fixes custom type templates missing on home

Modified:  
trunk/infolog/inc/class.infolog\_favorite\_portlet.inc.php

# Modified: trunk/infolog/inc/class.infolog\_favorite\_portlet.inc.php URL: [http://svn.stylite.de/viewvc/egroupware/trunk/infolog/inc/class.infolog\_favorite\_portlet.inc.php?rev=51946&r1=51945&r2=51946&view=diff](http://svn.stylite.de/viewvc/egroupware/trunk/infolog/inc/class.infolog_favorite_portlet.inc.php?rev=51946&r1=51945&r2=51946&view=diff)

— trunk/infolog/inc/class.infolog\_favorite\_portlet.inc.php (original)  
+++ trunk/infolog/inc/class.infolog\_favorite\_portlet.inc.php Tue Feb 24 20:29:47 2015  
@@ -63,6 +63,16 @@  
\*/  
public static function get\_rows(&$query, &$rows, &$readonlys)  
{

- 

```
  // Make sure we pass the type check

```

- 

```
  if ($query['col_filter']['info_type'])

```

- 

```
  {

```

- 

```
  	$tpl = new etemplate_new;

```

- 

```
  	if ($tpl->read('infolog.index.rows.'.$query['col_filter']['info_type']))

```

- 

```
  	{

```

- 

```
  		$query['template'] = $tpl->name;

```

- 

```
  		$query['custom_fields'] = true;	// read the custom fields too

```

- 

```
  	}

```

- 

```
  }
  $ui = new infolog_ui();
  $total = $ui->get_rows($query, $rows, $readonlys);
  // infolog_ui overwrites what we set in constructor

```

* * *

Dive into the World of Parallel Programming The Go Parallel Website, sponsored  
by Intel and developed in partnership with Slashdot Media, is your hub for all  
things parallel software development, from weekly thought leadership blogs to  
news, videos, case studies, tutorials and more. Take a look and join the  
conversation now. [http://goparallel.sourceforge.net/](http://goparallel.sourceforge.net/)

* * *

eGroupWare-cvs mailing list  
[eGroupWare-cvs@lists.sourceforge.net](mailto:eGroupWare-cvs@lists.sourceforge.net)  
[https://lists.sourceforge.net/lists/listinfo/egroupware-cvs](https://lists.sourceforge.net/lists/listinfo/egroupware-cvs)
