Extensions Paheko  Check-in [07bafc6f7d]

Overview
Comment:Fix user when editing taima
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 07bafc6f7d2ddf2dab2a9a4f1004822ecc81b140
User & Date: bohwaz on 2023-03-19 17:59:53
Other Links: manifest | tags
Context
2023-03-22
11:26
Fix pagination in caisse sessions list check-in: b7e8d32449 user: bohwaz tags: trunk
2023-03-19
17:59
Fix user when editing taima check-in: 07bafc6f7d user: bohwaz tags: trunk
2023-02-23
10:32
Bump version check-in: ca34d97b92 user: bohwaz tags: trunk
Changes

Modified taima/www/admin/others_edit.php from [f2b96d5b69] to [10817de3a7].

32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
	$entry = Tracking::get((int)qg('from'));
	$entry = clone $entry;
	$entry_duration = Tracking::formatMinutes($entry->duration);
}
elseif (qg('id')) {
	$entry = Tracking::get((int)qg('id'));
	$entry_duration = Tracking::formatMinutes($entry->duration);
	$selected_user = [$user->id => $user->identite];
}
else {
	$entry = new Entry;
	$entry_duration = null;
}

$form->runIf('save', function () use ($entry) {







|







32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
	$entry = Tracking::get((int)qg('from'));
	$entry = clone $entry;
	$entry_duration = Tracking::formatMinutes($entry->duration);
}
elseif (qg('id')) {
	$entry = Tracking::get((int)qg('id'));
	$entry_duration = Tracking::formatMinutes($entry->duration);
	$selected_user = $user ? [$user->id => $user->identite] : null;
}
else {
	$entry = new Entry;
	$entry_duration = null;
}

$form->runIf('save', function () use ($entry) {