mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 03:41:53 +02:00
using new historylog custom field stuff
This commit is contained in:
parent
d7a6328c12
commit
0aac7e43a9
@ -110,15 +110,7 @@ class calendar_tracking extends bo_tracking
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct(); // calling the constructor of the extended class
|
||||
|
||||
$custom = config::get_customfields('calendar', true);
|
||||
if(is_array($custom)) {
|
||||
foreach($custom as $name => $settings) {
|
||||
$this->field2history['#'.$name] = '#'.$name;
|
||||
$this->field2label['#'.$name] = $settings['label'];
|
||||
}
|
||||
}
|
||||
parent::__construct('calendar'); // adds custom fields
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2163,18 +2163,6 @@ function replace_eTemplate_onsubmit()
|
||||
foreach($tracking->field2label as $field => $label) {
|
||||
$sel_options[$status][$field] = lang($label);
|
||||
}
|
||||
// Get custom field options
|
||||
$custom = config::get_customfields('calendar', true);
|
||||
if(is_array($custom)) {
|
||||
foreach($custom as $name => $settings) {
|
||||
if(!is_array($settings['values'])) {
|
||||
$content['history']['status-widgets']['#'.$name] = $settings['type'];
|
||||
} elseif($settings['values']['@']) {
|
||||
$content['history']['status-widgets']['#'.$name] = customfields_widget::_get_options_from_file($settings['values']['@']);
|
||||
} else {
|
||||
$content['history']['status-widgets']['#'.$name] = $settings['values'];
|
||||
}
|
||||
}
|
||||
}
|
||||
// custom fields are now "understood" directly by historylog widget
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user