Overview
Comment:CSV custom import: Error message when all translation rows are unselected
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA3-256: 2593b9def30bcf21659ea88d2451ac2fcab432bf97f6f9989e64a3682cd3d38f
User & Date: bohwaz on 2021-02-22 23:52:27
Other Links: manifest | tags
Context
2021-02-25
20:54
Add "first connection" to label for lost password check-in: a1a07cf6fa user: bohwaz tags: trunk, stable
2021-02-22
23:52
CSV custom import: Error message when all translation rows are unselected check-in: 2593b9def3 user: bohwaz tags: trunk, stable
2021-02-21
23:40
Don't allow to split a year if it would move transactions to a different chart check-in: a9f28e8916 user: bohwaz tags: trunk, stable
Changes

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

136
137
138
139
140
141
142




143
144
145
146
147
148
149
		}

		foreach ($this->mandatory_columns as $key) {
			if (!in_array($key, $translation, true)) {
				throw new UserException(sprintf('La colonne "%s" est obligatoire mais n\'a pas été sélectionnée ou n\'existe pas.', $this->columns[$key]));
			}
		}





		$this->translation = $translation;

		$this->session->set($this->key . '_translation', $this->translation);
	}

	public function clear(): void







>
>
>
>







136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
		}

		foreach ($this->mandatory_columns as $key) {
			if (!in_array($key, $translation, true)) {
				throw new UserException(sprintf('La colonne "%s" est obligatoire mais n\'a pas été sélectionnée ou n\'existe pas.', $this->columns[$key]));
			}
		}

		if (!count($translation)) {
			throw new UserException('Aucune colonne n\'a été sélectionnée');
		}

		$this->translation = $translation;

		$this->session->set($this->key . '_translation', $this->translation);
	}

	public function clear(): void