mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
setting default for optional 2. beforeSendToClient parameter to null
This commit is contained in:
parent
8cbe09b24c
commit
7180f78f00
@ -233,7 +233,7 @@ class etemplate_widget_customfields extends etemplate_widget_transformer
|
||||
{
|
||||
$widget->attrs['only_app'] = $field['type'];
|
||||
}
|
||||
$widget->beforeSendToClient($this->id == self::GLOBAL_ID ? '':$this->id, $fname);
|
||||
$widget->beforeSendToClient($this->id == self::GLOBAL_ID ? '':$this->id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ class etemplate_widget_nextmatch extends etemplate_widget
|
||||
* @param string $cname
|
||||
* @param array $expand values for keys 'c', 'row', 'c_', 'row_', 'cont'
|
||||
*/
|
||||
public function beforeSendToClient($cname, array $expand)
|
||||
public function beforeSendToClient($cname, array $expand=null)
|
||||
{
|
||||
$attrs = $this->attrs;
|
||||
$form_name = self::form_name($cname, $this->id, $expand);
|
||||
|
@ -74,7 +74,7 @@ class etemplate_widget_textbox extends etemplate_widget
|
||||
* @param string $cname
|
||||
* @param array $expand values for keys 'c', 'row', 'c_', 'row_', 'cont'
|
||||
*/
|
||||
public function beforeSendToClient($cname, array $expand)
|
||||
public function beforeSendToClient($cname, array $expand=null)
|
||||
{
|
||||
// to NOT transmit passwords back to client, we need to store (non-empty) value in preserv
|
||||
if ($this->attrs['type'] == 'passwd' || $this->type == 'passwd')
|
||||
|
Loading…
Reference in New Issue
Block a user