Overview
Comment:Typo
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: ec219a69b2067613b898c76c75f41b62c92e83b3
User & Date: bohwaz on 2020-12-10 19:09:25
Other Links: manifest | tags
Context
2020-12-10
19:35
This is not available yet check-in: 439a06bb3c user: bohwaz tags: trunk, stable
19:09
Typo check-in: ec219a69b2 user: bohwaz tags: trunk, stable
19:05
Make sure the source has a lines array check-in: cd365f64b6 user: bohwaz tags: trunk, stable
Changes

Modified src/include/lib/Garradin/Entities/Accounting/Transaction.php from [3f70c91d3a] to [b120a18148].

412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
		}

		$type = $source['type'];

		$this->importForm($source);

		if (self::TYPE_ADVANCED == $type) {
			if (!isset($source['lines']) || !in_array($source['lines'])) {
				throw new ValidationException('Aucune ligne dans la saisie');
			}

			$lines = Utils::array_transpose($source['lines']);

			foreach ($lines as $i => $line) {
				$line['id_account'] = @count($line['account']) ? key($line['account']) : null;







|







412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
		}

		$type = $source['type'];

		$this->importForm($source);

		if (self::TYPE_ADVANCED == $type) {
			if (!isset($source['lines']) || !is_array($source['lines'])) {
				throw new ValidationException('Aucune ligne dans la saisie');
			}

			$lines = Utils::array_transpose($source['lines']);

			foreach ($lines as $i => $line) {
				$line['id_account'] = @count($line['account']) ? key($line['account']) : null;