Overview
Comment:Remove missed call to clearing graph cache
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA3-256: 02d76c94de7e2dbb1a90c05d0a8d7bde3df3f99bdd2898201a332da6aef2b4fb
User & Date: bohwaz on 2022-02-17 16:42:25
Other Links: manifest | tags
Context
2022-02-17
17:01
Fix config files URLs when WWW_URL is down check-in: 7865a6c1c2 user: bohwaz tags: trunk, stable
16:42
Remove missed call to clearing graph cache check-in: 02d76c94de user: bohwaz tags: trunk, stable
16:41
Don't need to clear anymore check-in: 5043b8dfd3 user: bohwaz tags: trunk, stable
Changes

Modified src/include/lib/Garradin/Accounting/Transactions.php from [02537b5cac] to [ac00c7ad5c].

407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
				$e->setDetails($transaction->asDetailsArray());
			}

			throw $e;
		}

		$db->commit();

		Graph::clearCacheAllYears();
	}

	static public function setAnalytical(?int $id_analytical, ?array $transactions = null, ?array $lines = null)
	{
		$db = DB::getInstance();

		if (null !== $id_analytical && !$db->test(Account::TABLE, 'type = ? AND id = ?', Account::TYPE_ANALYTICAL, $id_analytical)) {







<
<







407
408
409
410
411
412
413


414
415
416
417
418
419
420
				$e->setDetails($transaction->asDetailsArray());
			}

			throw $e;
		}

		$db->commit();


	}

	static public function setAnalytical(?int $id_analytical, ?array $transactions = null, ?array $lines = null)
	{
		$db = DB::getInstance();

		if (null !== $id_analytical && !$db->test(Account::TABLE, 'type = ? AND id = ?', Account::TYPE_ANALYTICAL, $id_analytical)) {