Browse Source

voicemail export for 3.1.4 to 3.2 make sure voicemails that have been listened to are marked as saved.

Mark Crane 13 năm trước cách đây
mục cha
commit
c48cdf5e01
1 tập tin đã thay đổi với 9 bổ sung1 xóa
  1. 9 1
      upgrade/voicemail_export.php

+ 9 - 1
upgrade/voicemail_export.php

@@ -217,7 +217,6 @@ else {
 			$voicemail_status = $row['flags'];
 			$voicemail_priority = $row['read_flags']; // B_NORMAL
 			//$forwarded_by = $row['forwarded_by'];
-			//print_r($row);
 
 			//get the domain_uuid
 			foreach($_SESSION['domains'] as $tmp) {
@@ -229,6 +228,15 @@ else {
 			//get the voicemail_uuid
 			$voicemail_uuid = $mailbox[$voicemail_id]['voicemail_uuid'];
 
+			//update the message status using read_epoch
+			if ($read_epoch > 0) {
+				$message_status = 'saved';
+			}
+			else {
+				$message_status = '';
+			}
+
+			//add the voicemail message
 			$sql = "insert into v_voicemail_messages ";
 			$sql .= "(";
 			$sql .= "domain_uuid, ";