Made some changes at egw_actions

This is a usefull for opening "second level results" as a popup.
"Second level results" couldn't get opened as a popup at Project Manager app when i try to add a new Project as Template at the selected Project.
This commit is contained in:
Neo Morina 2017-11-09 14:43:49 +01:00 committed by GitHub
parent 3cdf799a6b
commit 85866c6ef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -848,6 +848,16 @@ class Nextmatch extends Etemplate\Widget
//echo "*** Inserting id=$prefix$id"; _debug_array($action);
// we break at end of foreach loop, as rest of actions is already dealt with
// by putting them as children
// sets the default attributes to every children dataset
if (is_array($action['children'])) {
foreach ($action['children'] as $key => $children) {
// checks if children is a valid array and if the "$default_attrs" variable exists
if (is_array($action['children'][$key]) && $default_attrs) {
$action['children'][$key] += $default_attrs;
}
}
}
}
// add all first level popup actions plus ones with enabled = 'javaScript:...' to action_links