link-entry widget returned wrong value, if value was preset and never changed, eg. InfoLogs created from PM or Addressbook

This commit is contained in:
Ralf Becker 2006-10-27 10:48:29 +00:00
parent 03c7a819d3
commit e9cc37b01c

View File

@ -360,6 +360,10 @@
unset($span); unset($span);
} }
} }
else
{
$app = $cell['size'];
}
if (($extension_data['app'] = $cell['size'])) // no app-selection, using app given in $cell['size'] if (($extension_data['app'] = $cell['size'])) // no app-selection, using app given in $cell['size']
{ {
$tpl->disable_cells('app'); $tpl->disable_cells('app');
@ -368,7 +372,7 @@
unset($onchange); unset($onchange);
} }
$value = array( $value = array(
'app' => $cell['size'], 'app' => $app,
'no_app_sel' => !!$cell['size'], 'no_app_sel' => !!$cell['size'],
'id' => $value, 'id' => $value,
); );