mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 11:54:32 +02:00
Allow to import orderdetails and partLots of parts
This commit is contained in:
parent
a7ea12d07d
commit
27b43041f9
3 changed files with 3 additions and 3 deletions
|
@ -344,7 +344,7 @@ class Orderdetail extends AbstractDBElement implements TimeStampableInterface, N
|
|||
public function setSupplierProductUrl(string $new_url): self
|
||||
{
|
||||
//Only change the internal URL if it is not the auto generated one
|
||||
if ($new_url === $this->supplier->getAutoProductUrl($this->getSupplierPartNr())) {
|
||||
if ($this->supplier && $new_url === $this->supplier->getAutoProductUrl($this->getSupplierPartNr())) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue