setting default for optional 2. beforeSendToClient parameter to null

This commit is contained in:
Ralf Becker 2013-11-04 15:41:58 +00:00
parent 8cbe09b24c
commit 7180f78f00
3 changed files with 7 additions and 7 deletions

View File

@ -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);
}
}
}

View File

@ -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);

View File

@ -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')