Merge pull request #21086 from Hystepik/develop#2
Fix: import update on xlsx
This commit is contained in:
commit
3dcd9fcfe9
@ -920,7 +920,7 @@ class ImportXlsx extends ModeleImports
|
|||||||
if (empty($keyfield)) {
|
if (empty($keyfield)) {
|
||||||
$keyfield = 'rowid';
|
$keyfield = 'rowid';
|
||||||
}
|
}
|
||||||
$sqlSelect .= "WHERE ".$keyfield." = ".((int) $lastinsertid);
|
$sqlSelect .= " WHERE ".$keyfield." = ".((int) $lastinsertid);
|
||||||
|
|
||||||
$resql = $this->db->query($sqlSelect);
|
$resql = $this->db->query($sqlSelect);
|
||||||
if ($resql) {
|
if ($resql) {
|
||||||
|
|||||||
@ -1120,7 +1120,7 @@ if ($step == 4 && $datatoimport) {
|
|||||||
$j = 0;
|
$j = 0;
|
||||||
foreach ($optionsall as $tmpcode => $tmpval) { // Loop on each entry to add into each combo list.
|
foreach ($optionsall as $tmpcode => $tmpval) { // Loop on each entry to add into each combo list.
|
||||||
$label = '';
|
$label = '';
|
||||||
if ($tmpval['picto']) {
|
if (!empty($tmpval['picto'])) {
|
||||||
$label .= img_picto('', $tmpval['picto'], 'class="pictofixedwidth"');
|
$label .= img_picto('', $tmpval['picto'], 'class="pictofixedwidth"');
|
||||||
}
|
}
|
||||||
$label .= $tmpval['required'] ? '<strong>' : '';
|
$label .= $tmpval['required'] ? '<strong>' : '';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user