mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 09:58:04 +02:00
new optional parameter "extra_args" for link widget, to add further get parameters to the link
This commit is contained in:
parent
cd541542ce
commit
c1fa529fc8
@ -19,7 +19,8 @@
|
|||||||
* If run in a popup and the app uses no popups, a target will be set, to open a new full decorated window.
|
* If run in a popup and the app uses no popups, a target will be set, to open a new full decorated window.
|
||||||
*
|
*
|
||||||
* The class contains the following widgets:
|
* The class contains the following widgets:
|
||||||
* - link: Show a link to one linked entry specified by an array with keys app, id and optional title and help-message
|
* - link: Show a link to one linked entry specified by an array with keys app, id and optional title,
|
||||||
|
* help-message and extra_args (array with additional get parameters)
|
||||||
* Optionally the application can be specified as option and the value can be just the id.
|
* Optionally the application can be specified as option and the value can be just the id.
|
||||||
* - link-to: Widget to create links to an other entries of link-aware apps
|
* - link-to: Widget to create links to an other entries of link-aware apps
|
||||||
* If the variables $data['widget_id']['to_app'] = $app and $data['widget_id']['to_id'] = $entry_id
|
* If the variables $data['widget_id']['to_app'] = $app and $data['widget_id']['to_id'] = $entry_id
|
||||||
@ -161,6 +162,13 @@ class link_widget
|
|||||||
{
|
{
|
||||||
$link .= '&'.$var.'='.$val;
|
$link .= '&'.$var.'='.$val;
|
||||||
}
|
}
|
||||||
|
if (isset($value['extra_args']))
|
||||||
|
{
|
||||||
|
foreach($value['extra_args'] as $var => $val)
|
||||||
|
{
|
||||||
|
$link .= '&'.$var.'='.$val;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (!($popup = egw_link::is_popup($value['app'],'view')) &&
|
if (!($popup = egw_link::is_popup($value['app'],'view')) &&
|
||||||
etemplate::$request->output_mode == 2) // we are in a popup
|
etemplate::$request->output_mode == 2) // we are in a popup
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user