cbtn.io says "You rejected" before you click accept (or reject), but it shouldn't say that #2939

Open
This commit is contained in:
Daniel Camargo 2014-04-16 13:37:44 -03:00
parent d9988276d9
commit d87748811e

View File

@ -2051,6 +2051,7 @@ class Crunchbutton_Order extends Cana_Table {
public function deliveryReply($admin) {
$act = false;
foreach ($this->_actions as $action) {
if ($action->id_admin && $admin->id_admin) {
switch ($action->type) {
@ -2070,7 +2071,10 @@ class Crunchbutton_Order extends Cana_Table {
break;
case 'delivery-rejected':
$act = 'rejected';
if ( $action->id_admin == $admin->id_admin ) {
$act = 'rejected';
}
continue;
break;
}