mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 05:29:13 +01:00
Admin - remove a few more fields we don't want in periodic child jobs
This commit is contained in:
parent
cd694a16a7
commit
c259893926
@ -1126,12 +1126,12 @@ abstract class admin_cmd
|
|||||||
// instanciate single periodic execution object
|
// instanciate single periodic execution object
|
||||||
$single = $cmd->as_array();
|
$single = $cmd->as_array();
|
||||||
$single['parent'] = $single['id'];
|
$single['parent'] = $single['id'];
|
||||||
$single = array_diff_key($single, array(
|
$single = array_diff_key($single, array_flip(array(
|
||||||
'id','uid',
|
'id','uid',
|
||||||
'created','modified','modifier',
|
'created','modified','modifier',
|
||||||
'async_job_id','rrule','scheduled',
|
'async_job_id','rrule','scheduled',
|
||||||
'status', 'set', 'old'
|
'status', 'set', 'old','value','result'
|
||||||
));
|
)));
|
||||||
|
|
||||||
$periodic = admin_cmd::instanciate($single);
|
$periodic = admin_cmd::instanciate($single);
|
||||||
|
|
||||||
@ -1418,6 +1418,19 @@ abstract class admin_cmd
|
|||||||
// ignore widgets that can't go in the historylog
|
// ignore widgets that can't go in the historylog
|
||||||
case 'button': case 'buttononly': case 'taglist-thumbnail':
|
case 'button': case 'buttononly': case 'taglist-thumbnail':
|
||||||
break;
|
break;
|
||||||
|
case 'radio':
|
||||||
|
if (!is_array($widgets[$widget->id])) $widgets[$widget->id] = [];
|
||||||
|
$label = (string)$widget->attrs['label'];
|
||||||
|
// translate "{something} {else}" type options
|
||||||
|
if (strpos($label, '{') !== false)
|
||||||
|
{
|
||||||
|
$label = preg_replace_callback('/{([^}]+)}/', function($matches)
|
||||||
|
{
|
||||||
|
return lang($matches[1]);
|
||||||
|
}, $label);
|
||||||
|
}
|
||||||
|
$widgets[$widget->id][(string)$widget->attrs['set_value']] = $label;
|
||||||
|
break;
|
||||||
// config templates have options in the template
|
// config templates have options in the template
|
||||||
case 'option':
|
case 'option':
|
||||||
if (!is_array($widgets[$last_select])) $widgets[$last_select] = [];
|
if (!is_array($widgets[$last_select])) $widgets[$last_select] = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user