Overview
Comment: | Make sure the source has a lines array |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA1: |
cd365f64b6193849da9e6de8ec1e42ac |
User & Date: | bohwaz on 2020-12-10 19:05:04 |
Other Links: | manifest | tags |
Context
2020-12-10
| ||
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 | |
18:17 | New release check-in: 031185e587 user: bohwaz tags: trunk, stable, 1.0.0-rc12 | |
Changes
Modified src/include/lib/Garradin/Entities/Accounting/Transaction.php from [d9fc699598] to [3f70c91d3a].
︙ | |||
412 413 414 415 416 417 418 419 420 421 422 423 424 425 | 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 | + + + + | } $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; if (!$line['id_account']) { throw new ValidationException('Numéro de compte invalide sur la ligne ' . ($i+1)); |
︙ |