| @@ 2268-2268 (lines=1) @@ | ||
| 2265 | //$content['info_des'] = substr($content['info_des'],0,1793); |
|
| 2266 | //echo "<p>infolog_ui.edit(info_id='$info_id',action='$action',action_id='$action_id') readonlys="; print_r($readonlys); echo ", content = "; _debug_array($content); |
|
| 2267 | //$content['info_cc'] is expected (by the widget) to be an array of emailaddresses, but is stored as comma separated string |
|
| 2268 | if (!empty($content['info_cc'])&&!is_array($content['info_cc']))$content['info_cc'] = explode(',',$content['info_cc']); |
|
| 2269 | $this->tmpl->exec('infolog.infolog_ui.edit',$content,$sel_options,$readonlys,$preserv+array( // preserved values |
|
| 2270 | 'info_id' => $info_id, |
|
| 2271 | 'action' => $action, |
|
| @@ 562-569 (lines=8) @@ | ||
| 559 | { |
|
| 560 | $content['addresses'] = $vacRules['aliases']; |
|
| 561 | } |
|
| 562 | if (!empty($vacation['forwards'])) |
|
| 563 | { |
|
| 564 | $content['forwards'] = explode(",",$vacation['forwards']); |
|
| 565 | } |
|
| 566 | else |
|
| 567 | { |
|
| 568 | $content['forwards'] = ''; |
|
| 569 | } |
|
| 570 | if (strlen(trim($vacation['text']))==0 && $this->mailConfig['default_vacation_text']) $content['text'] = $this->mailConfig['default_vacation_text']; |
|
| 571 | if (strlen(trim($content['text']))==0) |
|
| 572 | { |
|
| @@ 1795-1798 (lines=4) @@ | ||
| 1792 | $readonlys['recur_interval'] = $readonlys['recur_data'] = true; |
|
| 1793 | } |
|
| 1794 | } |
|
| 1795 | if($content['category'] && !is_array($content['category'])) |
|
| 1796 | { |
|
| 1797 | $content['category'] = explode(',',$event['category']); |
|
| 1798 | } |
|
| 1799 | // disabling the custom fields tab, if there are none |
|
| 1800 | $readonlys['tabs'] = array( |
|
| 1801 | 'custom' => !count($this->bo->customfields), |
|