Needs review
Project:
Localizer
Version:
5.x-1.11
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 May 2008 at 15:08 UTC
Updated:
26 Jun 2008 at 11:30 UTC
Jump to comment: Most recent file
When creating a node you were able to specify a language, this behavior changed from 1.10 in 1.11.
This is present in localizernode.module (line 123):
if (arg(1)=='add') {
if (variable_get('localizer_switch_byhostname', FALSE)) {
$currenthost = $_SERVER['HTTP_HOST'];
$localebyhostname = localizer_localebyhostname($currenthost);
$form['#node']->localizernode_locale = $localebyhostname;
}
else {
$form['#node']->localizernode_locale = localizer_get_defaultcontentlocale();
}
}
else {
$form['localizernode_locale'] = array(
'#type' => 'select',
'#title' => t('Language'),
'#default_value' => $form['#node']->localizernode_locale,
'#options' => $options,
'#required' => FALSE,
'#weight' => -18,
);
}
If you comment the last else, it will work properly.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | localizernode.module.patch | 888 bytes | Bodo Maass |
Comments
Comment #1
Bodo Maass commentedHi shariff,
Could you please provide a proper patch, or at least post your code exactly as it is after your change? That will make it easier for this fix to get committed.
Comment #2
Bodo Maass commentedHere is a proper patch.