Remove Rack Photo on deletion and do not remove rack_units as the DB is set to cacade delete these

This commit is contained in:
johnnyq
2024-06-14 17:44:29 -04:00
parent 5ba0315a42
commit aca5a1ee54
2 changed files with 7 additions and 4 deletions

View File

@@ -111,7 +111,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<i class="fas fa-fw fa-archive mr-2"></i>Archive
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger text-bold confirm-link" href="post.php?archive_rack=<?php echo $rack_id; ?>">
<a class="dropdown-item text-danger text-bold confirm-link" href="post.php?delete_rack=<?php echo $rack_id; ?>">
<i class="fas fa-fw fa-trash mr-2"></i>Delete
</a>
<?php } ?>