Make sure customfields widget has an ID, or it can't access settings client-side

This commit is contained in:
Nathan Gray 2011-10-11 18:15:51 +00:00
parent fe05746b11
commit 06e03d2137

View File

@ -77,6 +77,9 @@ class etemplate_widget_customfields extends etemplate_widget_transformer
*/
public function beforeSendToClient($cname)
{
// No name, no way to get parameters client-side.
if(!$this->id) $this->id = 'custom_fields';
$form_name = self::form_name($cname, $this->id);
$app =& $this->getElementAttribute($form_name, 'app');