Overview
Comment:Fix bug where id column is not defined in imported CSV
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA3-256: 07fd2351c6edb6e0b775489a2af1ff5169be82a8e7ac885364148073f96a84a0
User & Date: bohwaz on 2022-03-03 11:20:44
Other Links: manifest | tags
Context
2022-03-03
11:30
Fix install after reset when organization name is NULL (how?) check-in: c6889f11c6 user: bohwaz tags: trunk, stable
11:20
Fix bug where id column is not defined in imported CSV check-in: 07fd2351c6 user: bohwaz tags: trunk, stable
2022-02-26
19:07
Fix escaping of user fields check-in: c1113d8a63 user: bohwaz tags: trunk, stable
Changes

Modified src/include/lib/Garradin/Accounting/Transactions.php from [5cdaffd0f4] to [8effb4c3b2].

337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
					}

					$transaction = null;
				}

				// Find or create transaction
				if (null === $transaction) {
					if ($row->id && !$ignore_ids) {
						$transaction = self::get((int)$row->id);

						if (!$transaction) {
							throw new UserException(sprintf('l\'écriture #%d est introuvable', $row->id));
						}

						if ($transaction->id_year != $year->id()) {







|







337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
					}

					$transaction = null;
				}

				// Find or create transaction
				if (null === $transaction) {
					if (!empty($row->id) && !$ignore_ids) {
						$transaction = self::get((int)$row->id);

						if (!$transaction) {
							throw new UserException(sprintf('l\'écriture #%d est introuvable', $row->id));
						}

						if ($transaction->id_year != $year->id()) {