Fix multientity on overwritting translation not yet supported.
This commit is contained in:
parent
4f5c5a2b0e
commit
38e6c9cc57
@ -222,7 +222,7 @@ if ($mode == 'overwrite')
|
||||
print '<input type="text" class="quatrevingtpercent" name="transvalue" value="">';
|
||||
print '</td>';
|
||||
// Limit to superadmin
|
||||
if (! empty($conf->multicompany->enabled) && !$user->entity)
|
||||
/*if (! empty($conf->multicompany->enabled) && !$user->entity)
|
||||
{
|
||||
print '<td>';
|
||||
print '<input type="text" class="flat" size="1" name="entity" value="'.$conf->entity.'">';
|
||||
@ -230,10 +230,10 @@ if ($mode == 'overwrite')
|
||||
print '<td align="center">';
|
||||
}
|
||||
else
|
||||
{
|
||||
{*/
|
||||
print '<td align="center">';
|
||||
print '<input type="hidden" name="entity" value="'.$conf->entity.'">';
|
||||
}
|
||||
//}
|
||||
print '<input type="submit" class="button" value="'.$langs->trans("Add").'" name="add">';
|
||||
print "</td>\n";
|
||||
print '</tr>';
|
||||
@ -388,15 +388,15 @@ if ($mode == 'searchkey')
|
||||
print '</td><td>';
|
||||
print '<input type="text" class="quatrevingtpercent" name="transvalue" value="'.$transvalue.'">';
|
||||
// Limit to superadmin
|
||||
if (! empty($conf->multicompany->enabled) && !$user->entity)
|
||||
/*if (! empty($conf->multicompany->enabled) && !$user->entity)
|
||||
{
|
||||
print '</td><td>';
|
||||
print '<input type="text" class="flat" size="1" name="entitysearch" value="'.$conf->entity.'">';
|
||||
}
|
||||
else
|
||||
{
|
||||
{*/
|
||||
print '<input type="hidden" name="entitysearch" value="'.$conf->entity.'">';
|
||||
}
|
||||
//}
|
||||
print '</td>';
|
||||
// Action column
|
||||
print '<td class="liste_titre" align="middle">';
|
||||
@ -427,6 +427,10 @@ if ($mode == 'searchkey')
|
||||
$htmltext = $langs->trans("OriginalValueWas", $newlangfileonly->tab_translate[$key]);
|
||||
print $form->textwithpicto('', $htmltext, 1, 'warning');
|
||||
}
|
||||
if (! empty($conf->multicompany->enabled) && !$user->entity)
|
||||
{
|
||||
print $val;
|
||||
}
|
||||
print '</td></tr>'."\n";
|
||||
}
|
||||
|
||||
|
||||
@ -173,3 +173,5 @@ ALTER TABLE llx_bank_account ADD COLUMN note_public text;
|
||||
ALTER TABLE llx_bank_account ADD COLUMN model_pdf varchar(255);
|
||||
ALTER TABLE llx_bank_account ADD COLUMN import_key varchar(14);
|
||||
|
||||
ALTER TABLE llx_overwrite_trans ADD COLUMN integer DEFAULT 1 NOT NULL;
|
||||
|
||||
|
||||
@ -19,6 +19,7 @@
|
||||
create table llx_overwrite_trans
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
||||
lang varchar(5), -- en_US, fr_FR ...
|
||||
transkey varchar(128),
|
||||
transvalue text
|
||||
|
||||
Loading…
Reference in New Issue
Block a user