Merge pull request #25285 from mc2contributor/fixUnknownColumn
fix: Unknown column 'fk_projet' in 'field list' when trying to link...
This commit is contained in:
commit
4c37cefac4
1 changed files with 1 additions and 1 deletions
|
|
@ -1924,7 +1924,7 @@ class Project extends CommonObject
|
|||
if ($tableName == "actioncomm") {
|
||||
$sql .= " SET fk_project=".$this->id;
|
||||
$sql .= " WHERE id=".((int) $elementSelectId);
|
||||
} elseif ($tableName == "entrepot") {
|
||||
} elseif (in_array($tableName, ["entrepot","mrp_mo"])) {
|
||||
$sql .= " SET fk_project=".$this->id;
|
||||
$sql .= " WHERE rowid=".((int) $elementSelectId);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue