Add function for getting tags by base name, log base edits for tags in
NodaLogEdit
This commit is contained in:
@ -87,6 +87,22 @@ 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 `tag`
|
||||
SET `tag_erfasst_am` = NOW(),
|
||||
`tag_erfasst_von` = ?
|
||||
WHERE `tag_id` = ?");
|
||||
$updateStmt->bind_param("si", $user_name, $tag_id);
|
||||
$updateStmt->execute();
|
||||
$updateStmt->close();
|
||||
$updateStmt = null;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user