Overview
Comment:Make sure at least one column has been selected
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: 02840be1ace08718c4d7fe0d0d7ff47dd3c5bc14
User & Date: bohwaz on 2020-12-14 21:55:11
Other Links: manifest | tags
Context
2020-12-15
20:12
Fix import of negative amounts, ignore minus sign check-in: 517f54ebd7 user: bohwaz tags: trunk, stable
2020-12-14
21:55
Make sure at least one column has been selected check-in: 02840be1ac user: bohwaz tags: trunk, stable
21:47
Allow general ledger to span multiple charts check-in: 560d6684ed user: bohwaz tags: trunk, stable
Changes

Modified src/include/lib/Garradin/CSV_Custom.php from [12dd8c64a5] to [f34f839792].

113
114
115
116
117
118
119




120
121
122
123
124
125
126
	public function getTranslationTable(): array
	{
		return $this->translation;
	}

	public function setTranslationTable(array $table): void
	{




		$translation = [];

		foreach ($table as $csv => $target) {
			if (empty($target)) {
				continue;
			}








>
>
>
>







113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
	public function getTranslationTable(): array
	{
		return $this->translation;
	}

	public function setTranslationTable(array $table): void
	{
		if (!count($table)) {
			throw new UserException('Aucune colonne n\'a été sélectionnée');
		}

		$translation = [];

		foreach ($table as $csv => $target) {
			if (empty($target)) {
				continue;
			}