FIX #3734 Do not show empty links of deleted source objects in stock movement list
This commit is contained in:
parent
c77eaeaa77
commit
9f27e2323f
1 changed files with 5 additions and 2 deletions
|
|
@ -508,7 +508,10 @@ class MouvementStock
|
|||
break;
|
||||
}
|
||||
|
||||
$origin->fetch($fk_origin);
|
||||
return $origin->getNomUrl(1);
|
||||
if ($origin->fetch($fk_origin) > 0) {
|
||||
return $origin->getNomUrl(1);
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue