Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
parent
ec6c735d89
commit
a2a9c51e50
@ -61,7 +61,7 @@ function testSqlAndScriptInject($val, $type)
|
|||||||
// Decode string first
|
// Decode string first
|
||||||
// So <svg onload='console.log("123")' become <svg onload='console.log("123")'
|
// So <svg onload='console.log("123")' become <svg onload='console.log("123")'
|
||||||
// So ":'" become ":'" (due to ENT_HTML5)
|
// So ":'" become ":'" (due to ENT_HTML5)
|
||||||
$val = html_entity_decode($val, ENT_QUOTES|ENT_HTML5);
|
$val = html_entity_decode($val, ENT_QUOTES | ENT_HTML5);
|
||||||
|
|
||||||
// TODO loop to decode until no more thing to decode ?
|
// TODO loop to decode until no more thing to decode ?
|
||||||
|
|
||||||
|
|||||||
@ -610,8 +610,8 @@ if (!empty($type))
|
|||||||
if ($type == 'f') $label = 'NewSupplier';
|
if ($type == 'f') $label = 'NewSupplier';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($contextpage = 'poslist' && $type == 't' && ( !empty($conf->global->PRODUIT_MULTIPRICES) || !empty($conf->global->PRODUIT_CUSTOMER_PRICES) || !empty($conf->global->PRODUIT_CUSTOMER_PRICES_BY_QTY_MULTIPRICES))) {
|
if ($contextpage = 'poslist' && $type == 't' && (!empty($conf->global->PRODUIT_MULTIPRICES) || !empty($conf->global->PRODUIT_CUSTOMER_PRICES) || !empty($conf->global->PRODUIT_CUSTOMER_PRICES_BY_QTY_MULTIPRICES))) {
|
||||||
print get_htmloutput_mesg(img_warning('default') . ' ' . $langs->trans("BecarefullChangeThirdpartyBeforeAddProductToInvoice"), '', 'warning', 1);
|
print get_htmloutput_mesg(img_warning('default').' '.$langs->trans("BecarefullChangeThirdpartyBeforeAddProductToInvoice"), '', 'warning', 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show the new button only when this page is not opend from the Extended POS (pop-up window)
|
// Show the new button only when this page is not opend from the Extended POS (pop-up window)
|
||||||
@ -1257,13 +1257,13 @@ while ($i < min($num, $limit))
|
|||||||
{
|
{
|
||||||
// Prospect status
|
// Prospect status
|
||||||
print '<td class="center nowrap"><div class="nowrap">';
|
print '<td class="center nowrap"><div class="nowrap">';
|
||||||
print '<div class="inline-block">' . $companystatic->LibProspCommStatut($obj->stcomm_id, 2, $prospectstatic->cacheprospectstatus[$obj->stcomm_id]['label'], $obj->stcomm_picto);
|
print '<div class="inline-block">'.$companystatic->LibProspCommStatut($obj->stcomm_id, 2, $prospectstatic->cacheprospectstatus[$obj->stcomm_id]['label'], $obj->stcomm_picto);
|
||||||
print '</div> - <div class="inline-block">';
|
print '</div> - <div class="inline-block">';
|
||||||
foreach ($prospectstatic->cacheprospectstatus as $key => $val)
|
foreach ($prospectstatic->cacheprospectstatus as $key => $val)
|
||||||
{
|
{
|
||||||
$titlealt = 'default';
|
$titlealt = 'default';
|
||||||
if (!empty($val['code']) && !in_array($val['code'], array('ST_NO', 'ST_NEVER', 'ST_TODO', 'ST_PEND', 'ST_DONE'))) $titlealt = $val['label'];
|
if (!empty($val['code']) && !in_array($val['code'], array('ST_NO', 'ST_NEVER', 'ST_TODO', 'ST_PEND', 'ST_DONE'))) $titlealt = $val['label'];
|
||||||
if ($obj->stcomm_id != $val['id']) print '<a class="pictosubstatus" href="' . $_SERVER["PHP_SELF"] . '?stcommsocid=' . $obj->rowid . '&stcomm=' . $val['code'] . '&action=setstcomm&token='.newToken() . $param . ($page ? '&page=' . urlencode($page) : '') . '">' . img_action($titlealt, $val['code'], $val['picto']) . '</a>';
|
if ($obj->stcomm_id != $val['id']) print '<a class="pictosubstatus" href="'.$_SERVER["PHP_SELF"].'?stcommsocid='.$obj->rowid.'&stcomm='.$val['code'].'&action=setstcomm&token='.newToken().$param.($page ? '&page='.urlencode($page) : '').'">'.img_action($titlealt, $val['code'], $val['picto']).'</a>';
|
||||||
}
|
}
|
||||||
print '</div></div></td>';
|
print '</div></div></td>';
|
||||||
if (!$i) $totalarray['nbfield']++;
|
if (!$i) $totalarray['nbfield']++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user