[vhffs-dev] [2143] Fixed broadcast list state on broadcast view

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 2143
Author:   gradator
Date:     2012-04-01 01:54:06 +0200 (Sun, 01 Apr 2012)
Log Message:
-----------
Fixed broadcast list state on broadcast view

Modified Paths:
--------------
    branches/vhffs-4.4/vhffs-api/src/Vhffs/Panel/Broadcast.pm
    trunk/vhffs-api/src/Vhffs/Panel/Broadcast.pm

Modified: branches/vhffs-4.4/vhffs-api/src/Vhffs/Panel/Broadcast.pm
===================================================================
--- branches/vhffs-4.4/vhffs-api/src/Vhffs/Panel/Broadcast.pm	2012-03-15 18:32:41 UTC (rev 2142)
+++ branches/vhffs-4.4/vhffs-api/src/Vhffs/Panel/Broadcast.pm	2012-03-31 23:54:06 UTC (rev 2143)
@@ -140,9 +140,9 @@
 		return;
 	}
 
-	if($mailing->{state} == 3) {
+	if($mailing->{state} == Vhffs::Constants::BROADCAST_WAITING_TO_BE_SENT) {
 		$mailing->{state} = gettext('Awaiting sending');
-	} elsif($mailing->{state} == 6) {
+	} elsif($mailing->{state} == Vhffs::Constants::BROADCAST_SENT) {
 		$mailing->{state} = gettext('Sent');
 	} else {
 		$mailing->{state} = gettext('Unknown');

Modified: trunk/vhffs-api/src/Vhffs/Panel/Broadcast.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Broadcast.pm	2012-03-15 18:32:41 UTC (rev 2142)
+++ trunk/vhffs-api/src/Vhffs/Panel/Broadcast.pm	2012-03-31 23:54:06 UTC (rev 2143)
@@ -140,9 +140,9 @@
 		return;
 	}
 
-	if($mailing->{state} == 3) {
+	if($mailing->{state} == Vhffs::Constants::BROADCAST_WAITING_TO_BE_SENT) {
 		$mailing->{state} = gettext('Awaiting sending');
-	} elsif($mailing->{state} == 6) {
+	} elsif($mailing->{state} == Vhffs::Constants::BROADCAST_SENT) {
 		$mailing->{state} = gettext('Sent');
 	} else {
 		$mailing->{state} = gettext('Unknown');


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/