diff --git a/client_contact_bulk_assign_tags_modal.php b/client_contact_bulk_assign_tags_modal.php
index bb099c1d..312215fb 100644
--- a/client_contact_bulk_assign_tags_modal.php
+++ b/client_contact_bulk_assign_tags_modal.php
@@ -9,6 +9,12 @@
+
+
+
+
+
+
diff --git a/post/contact.php b/post/contact.php
index 6417f9a5..54bf2752 100644
--- a/post/contact.php
+++ b/post/contact.php
@@ -340,7 +340,7 @@ if (isset($_POST['bulk_assign_contact_tags'])) {
// Get Selected Contacts Count
$count = count($_POST['contact_ids']);
-
+
// Assign Location to Selected Contacts
if (!empty($_POST['contact_ids'])) {
foreach($_POST['contact_ids'] as $contact_id) {
@@ -352,6 +352,11 @@ if (isset($_POST['bulk_assign_contact_tags'])) {
$contact_name = sanitizeInput($row['contact_name']);
$client_id = intval($row['contact_client_id']);
+ if($_POST['bulk_remove_tags']) {
+ // Delete tags if chosed to do so
+ mysqli_query($mysqli, "DELETE FROM contact_tags WHERE contact_id = $contact_id");
+ }
+
// Add new tags
foreach($_POST['bulk_tags'] as $tag) {
$tag = intval($tag);