Merge pull request #21152 from daraelmin/patch-2
Fix #21150 - Regression Can't insert manual lines
This commit is contained in:
commit
871077d426
@ -1722,6 +1722,11 @@ class BookKeeping extends CommonObject
|
|||||||
dol_syslog(__METHOD__, LOG_DEBUG);
|
dol_syslog(__METHOD__, LOG_DEBUG);
|
||||||
$result = $this->db->query($sql);
|
$result = $this->db->query($sql);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
|
// Add an empty line when transaction is validated to permit to add new line manually
|
||||||
|
if ($mode != "_tmp") {
|
||||||
|
$line = new BookKeepingLine();
|
||||||
|
$this->linesmvt[] = $line;
|
||||||
|
}
|
||||||
while ($obj = $this->db->fetch_object($result)) {
|
while ($obj = $this->db->fetch_object($result)) {
|
||||||
$line = new BookKeepingLine();
|
$line = new BookKeepingLine();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user