Author: ralfbecker
New Revision: 54979
URL: http://svn.stylite.de/viewvc/egroupware?rev=54979&view=rev
Log:
fix messed up application change in preferences, need to take modified tabs into account
Modified:
trunk/etemplate/inc/class.etemplate_widget_tabbox.inc.php
— trunk/etemplate/inc/class.etemplate_widget_tabbox.inc.php (original)
+++ trunk/etemplate/inc/class.etemplate_widget_tabbox.inc.php Thu Feb 11 10:54:02 2016
@@ -23,6 +23,7 @@
-
- prepend: true prepend tab to existing ones, false (default) append tabs
-
-
- id: optinal namespace (content attribute of template)
-
-
- add_tabs: true(default) add to given tabs to template, false replace tabs in template
*/
class etemplate_widget_tabbox extends etemplate_widget
{
@@ -39,8 +40,14 @@
*/
public function run($method_name, $params=array(’’), $respect_disabled=false)
{
-
$form_name = self::form_name($params[0], $this->id, $params[1]);
-
// Make sure additional tabs are processed for any method
-
if (!($tabs =& self::getElementAttribute($form_name, 'tabs')))
-
{
-
$tabs = $this->attrs['tabs'];
-
}
-
if($tabs && !$this->tabs_attr_evaluated)
{
$this->tabs_attr_evaluated = true; // we must not evaluate tabs attribte more then once!
@@ -50,20 +57,22 @@
$this->children[1]->children = array();
}
-
//$this->tabs[] = $tab;
unset($template);
}
-
unset($tab);
-
//error_log(__METHOD__."('$method_name', ...) this->id='$this->id' calling setElementAttribute('$form_name', 'tabs', ".array2string($tabs).")");
-
self::setElementAttribute($form_name, 'tabs', $tabs);
}
// Check for disabled tabs set via readonly, and set them as disabled
-
$form_name = self::form_name($params[0], $this->id, $params[1]);
$readonlys = self::get_array(self::$request->readonlys, $form_name);
if($respect_disabled && $readonlys)
{
@@ -80,23 +89,6 @@
// Tabs are set up now, continue as normal
parent::run($method_name, $params, $respect_disabled);
-
}
-
-
/**
-
- Implemented to send tab-urls incl. cache-buster and mobile template switch to client-side
-
-
- They are send as tab_urls object via modifications.
-
-
-
*/
-
public function beforeSendToClient($cname)
-
{
-
$form_name = self::form_name($cname, $this->id);
-
-
if (!empty($this->tabs))
-
{
-
self::setElementAttribute($form_name, 'tabs', $this->tabs);
-
}
}
/**
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs