Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
2bf5e1373b
@ -631,7 +631,7 @@ class Translate
|
||||
// We replace some HTML tags by __xx__ to avoid having them encoded by htmlentities because
|
||||
// we want to keep '"' '<b>' '</b>' '<strong' '</strong>' '<a ' '</a>' '<br>' '< ' '<span' '</span>' that are reliable HTML tags inside translation strings.
|
||||
$str = str_replace(
|
||||
array('"', '<b>', '</b>', '<u>', '</u>', '<i>', '</i>', '<center>', '</center>', '<strong>', '</strong>', '<a ', '</a>', '<br>', '<span', '</span>', '< ', '>'), // We accept '< ' but not '<'. We can accept however '>'
|
||||
array('"', '<b>', '</b>', '<u>', '</u>', '<i', '</i>', '<center>', '</center>', '<strong>', '</strong>', '<a ', '</a>', '<br>', '<span', '</span>', '< ', '>'), // We accept '< ' but not '<'. We can accept however '>'
|
||||
array('__quot__', '__tagb__', '__tagbend__', '__tagu__', '__taguend__', '__tagi__', '__tagiend__', '__tagcenter__', '__tagcenterend__', '__tagb__', '__tagbend__', '__taga__', '__tagaend__', '__tagbr__', '__tagspan__', '__tagspanend__', '__ltspace__', '__gt__'),
|
||||
$str
|
||||
);
|
||||
@ -646,7 +646,7 @@ class Translate
|
||||
// Restore reliable HTML tags into original translation string
|
||||
$str = str_replace(
|
||||
array('__quot__', '__tagb__', '__tagbend__', '__tagu__', '__taguend__', '__tagi__', '__tagiend__', '__tagcenter__', '__tagcenterend__', '__taga__', '__tagaend__', '__tagbr__', '__tagspan__', '__tagspanend__', '__ltspace__', '__gt__'),
|
||||
array('"', '<b>', '</b>', '<u>', '</u>', '<i>', '</i>', '<center>', '</center>', '<a ', '</a>', '<br>', '<span', '</span>', '< ', '>'),
|
||||
array('"', '<b>', '</b>', '<u>', '</u>', '<i', '</i>', '<center>', '</center>', '<a ', '</a>', '<br>', '<span', '</span>', '< ', '>'),
|
||||
$str
|
||||
);
|
||||
|
||||
|
||||
@ -317,11 +317,16 @@ if (empty($reshook)) {
|
||||
//var_dump($_POST);exit;
|
||||
for ($i = 1; $i <= $num; $i++) {
|
||||
$lineToTest = '';
|
||||
$lineId = GETPOST($idl, 'int');
|
||||
foreach ($objectsrc->lines as $linesrc) {
|
||||
if ($linesrc->id == GETPOST($idl, 'int')) {
|
||||
if ($linesrc->id == $lineId) {
|
||||
$lineToTest = $linesrc;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (empty($lineToTest)) {
|
||||
continue;
|
||||
}
|
||||
$qty = "qtyl".$i;
|
||||
$comment = "comment".$i;
|
||||
$eatby = "dlc".$i;
|
||||
@ -340,7 +345,7 @@ if (empty($reshook)) {
|
||||
if ($entrepot_id < 0) {
|
||||
$entrepot_id = '';
|
||||
}
|
||||
if (!($linesrc->fk_product > 0) && empty($conf->global->STOCK_SUPPORTS_SERVICES)) {
|
||||
if (!($lineToTest->fk_product > 0) && empty($conf->global->STOCK_SUPPORTS_SERVICES)) {
|
||||
$entrepot_id = 0;
|
||||
}
|
||||
$eatby = GETPOST($eatby, 'alpha');
|
||||
|
||||
@ -175,7 +175,7 @@ if ($action == 'create') {
|
||||
print '<input type="hidden" name="chid" value="'.$chid.'">';
|
||||
print '<input type="hidden" name="action" value="add_payment">';
|
||||
|
||||
print dol_get_fiche_end();
|
||||
print dol_get_fiche_head();
|
||||
|
||||
print '<table class="border centpercent">';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user