Explorar o código

Update destinations.php

FusionPBX %!s(int64=7) %!d(string=hai) anos
pai
achega
63694c0f95
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      resources/classes/destinations.php

+ 1 - 1
resources/classes/destinations.php

@@ -298,7 +298,7 @@ class destinations {
 					//delete the checked rows
 						if ($action == 'delete') {
 							foreach($destinations as $row) {
-								if ($row['checked'] == 'true') {
+								if ($row['action'] == 'delete' or $row['checked'] == 'true') {
 									$sql = "delete from v_destinations ";
 									$sql .= "where destination_uuid = '".$row['destination_uuid']."'; ";
 									$this->db->query($sql);