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