Author: nathangray
Date: Wed Apr 27 17:17:32 2016
New Revision: 55890
URL: http://svn.stylite.de/viewvc/egroupware?rev=55890&view=rev
Log:
Fix merge print placeholders for only links to a certain app
Modified:
branches/14.2/etemplate/inc/class.bo_merge.inc.php
Modified: branches/14.2/etemplate/inc/class.bo_merge.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/branches/14.2/etemplate/inc/class.bo_merge.inc.php?rev=55890&r1=55889&r2=55890&view=diff
==============================================================================
--- branches/14.2/etemplate/inc/class.bo_merge.inc.php (original)
+++ branches/14.2/etemplate/inc/class.bo_merge.inc.php Wed Apr 27 17:17:32 2016
@@ -361,7 +361,7 @@
protected function get_all_links($app, $id, $prefix, &$content)
{
$array = array();
- $pattern = '@\$(link|links|attachments|links_attachments)\/?(title|href|link)?\/?([a-z]*)\$@';
+ $pattern = '@\$(links_attachments|links|attachments|link)\/?(title|href|link)?\/?([a-z]*)\$@';
static $link_cache;
if(preg_match_all($pattern, $content, $matches))
{
@@ -403,7 +403,8 @@
$array[($prefix?$prefix.'/':'').$placeholder] = $title;
break;
case 'links':
- $array[($prefix?$prefix.'/':'').$placeholder] = $this->get_links($app, $id, '!'.egw_link::VFS_APPNAME, array(),$matches[2][$i]);
+ $link_app = $matches[3][$i] ? $matches[3][$i] : '!'.egw_link::VFS_APPNAME;
+ $array[($prefix?$prefix.'/':'').$placeholder] = $this->get_links($app, $id, $link_app, array(),$matches[2][$i]);
break;
case 'attachments':
$array[($prefix?$prefix.'/':'').$placeholder] = $this->get_links($app, $id, egw_link::VFS_APPNAME,array(),$matches[2][$i]);
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.