Add function for getting tags by base name, log base edits for tags in

NodaLogEdit
This commit is contained in:
2021-05-26 22:36:02 +02:00
parent a4f24e5478
commit bc3f2a94d6
2 changed files with 46 additions and 0 deletions

View File

@ -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;
}
}
/**