Overview
Comment:Fix missing variable declaration
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA3-256: bbfc0a0eb3e0e9e9db1d661e059c3e6b0856b3c9cda2766210149796cac00445
User & Date: bohwaz on 2022-12-04 16:14:19
Other Links: branch diff | manifest | tags
Context
2022-12-04
16:15
Fix backup restore check-in: eadd8d23ec user: bohwaz tags: dev
16:14
Fix missing variable declaration check-in: bbfc0a0eb3 user: bohwaz tags: dev
16:12
Fix references to old membres table check-in: efaf454aba user: bohwaz tags: dev
Changes

Modified src/www/admin/acc/transactions/edit.php from [d0df7c84b1] to [1eaa57e23d].

16
17
18
19
20
21
22

23
24
25
26
27
28
29

if (!$transaction) {
	throw new UserException('Cette écriture n\'existe pas');
}

$transaction->assertCanBeModified();


$chart = $year->chart();
$accounts = $chart->accounts();

$csrf_key = 'acc_transaction_edit_' . $transaction->id();

$tpl->assign('chart', $chart);








>







16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

if (!$transaction) {
	throw new UserException('Cette écriture n\'existe pas');
}

$transaction->assertCanBeModified();

$year = Years::get($transaction->id_year);
$chart = $year->chart();
$accounts = $chart->accounts();

$csrf_key = 'acc_transaction_edit_' . $transaction->id();

$tpl->assign('chart', $chart);