Overview
Comment:Fix error when someone inputs zero as related ID
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA3-256: b7e22ccc04d4b11f95ca0cf23a33d977213e219ccb38b730db4d3e4e4543d638
User & Date: bohwaz on 2022-03-25 17:16:05
Other Links: manifest | tags
Context
2022-03-29
16:45
Fix web category selector to carry the _dialog query parameter check-in: 90132993bd user: bohwaz tags: trunk, stable
2022-03-25
17:16
Fix error when someone inputs zero as related ID check-in: b7e22ccc04 user: bohwaz tags: trunk, stable
15:58
Add one more parameter to wkhtmltopdf check-in: 8c56e4dc45 user: bohwaz tags: trunk, stable
Changes

Modified src/include/lib/Garradin/Entities/Accounting/Transaction.php from [86754a9488] to [da7db0f220].

639
640
641
642
643
644
645



646
647
648
649
650
651
652

	public function importFromEditForm(?array $source = null): void
	{
		if (null === $source) {
			$source = $_POST;
		}





		$this->resetLines();
		$this->importFromNewForm($source);
	}

	public function importFromBalanceForm(Year $year, ?array $source = null): void
	{







>
>
>







639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655

	public function importFromEditForm(?array $source = null): void
	{
		if (null === $source) {
			$source = $_POST;
		}

		if (empty($source['id_related'])) {
			unset($source['id_related']);
		}

		$this->resetLines();
		$this->importFromNewForm($source);
	}

	public function importFromBalanceForm(Year $year, ?array $source = null): void
	{