Overview
Comment: | Remove unused variable |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA3-256: |
20b010c98b1ac16c4dd9d45160fa51f4 |
User & Date: | bohwaz on 2021-10-05 01:53:25 |
Other Links: | branch diff | manifest | tags |
Context
2021-10-05
| ||
02:02 | Implement logging of actions (well just the logs data yet) check-in: f082d3c8b0 user: bohwaz tags: dev | |
01:53 | Remove unused variable check-in: 20b010c98b user: bohwaz tags: dev | |
00:52 | Merge stable changes in dev check-in: d0ca9be742 user: bohwaz tags: dev | |
Changes
Modified src/include/lib/Garradin/Files/Transactions.php from [181762b574] to [7fc2e9d2f8].
︙ | ︙ | |||
40 41 42 43 44 45 46 | $columns = self::LIST_COLUMNS; $tables = sprintf('%s f INNER JOIN acc_transactions t ON t.id = f.name INNER JOIN acc_years y ON t.id_year = y.id', Files::getVirtualTableName()); | < < | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | $columns = self::LIST_COLUMNS; $tables = sprintf('%s f INNER JOIN acc_transactions t ON t.id = f.name INNER JOIN acc_years y ON t.id_year = y.id', Files::getVirtualTableName()); // Only fetch directories with an ID as the name $conditions = sprintf('f.parent = \'%s\' AND f.type = %d AND printf("%%d", f.name) = name', File::CONTEXT_TRANSACTION, File::TYPE_DIRECTORY); $list = new DynamicList($columns, $tables, $conditions); $list->orderBy('year', true); $list->setCount('COUNT(DISTINCT t.id)'); $list->setModifier(function (&$row) { $row->date = \DateTime::createFromFormat('!Y-m-d', $row->date); }); return $list; } } |