Update base update time of places when editing a place
This commit is contained in:
@ -191,5 +191,21 @@ final class NodaLogEdit {
|
||||
$insertStmt->close();
|
||||
$insertStmt = null;
|
||||
|
||||
// Update the main tag table, except for edits to the base,
|
||||
// as these have built-in updating and updating in this case
|
||||
// would be superfluous.
|
||||
if ($section !== 'base') {
|
||||
|
||||
$updateStmt = $mysqli_noda->do_prepare("UPDATE `orte`
|
||||
SET `ort_erfasst_am` = NOW(),
|
||||
`ort_erfasst_von` = ?
|
||||
WHERE `ort_id` = ?");
|
||||
$updateStmt->bind_param("si", $user_name, $ort_id);
|
||||
$updateStmt->execute();
|
||||
$updateStmt->close();
|
||||
$updateStmt = null;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user