Browse Source

Fix the contact group delete button.

markjcrane 9 years ago
parent
commit
c3bf4b0086
1 changed files with 1 additions and 2 deletions
  1. 1 2
      contact_edit.php

+ 1 - 2
contact_edit.php

@@ -235,7 +235,6 @@ else {
 
 				//handle redirect
 					if ($_POST['submit'] == $text['button-add']) {
-						$group_uuid = $_POST['group_uuid'];
 						$location = "contact_edit.php?id=".$contact_uuid;
 					}
 
@@ -672,7 +671,7 @@ else {
 						echo "	<td class='vtable'>".$field['group_name']."</td>\n";
 						echo "	<td>\n";
 						if (permission_exists('contact_group_delete') || if_group("superadmin")) {
-							echo "	<a href='contact_group_delete.php?id=".$contact_group_uuid."&contact_uuid=".$field['contact_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
+							echo "	<a href='contact_group_delete.php?id=".$contact_group_uuid."&contact_uuid=".$contact_uuid."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
 						}
 						echo "	</td>\n";
 						echo "</tr>\n";