cbtn.io says "You rejected" before you click accept (or reject), but it shouldn't say that #2939
Open
This commit is contained in:
parent
d9988276d9
commit
d87748811e
@ -2051,6 +2051,7 @@ class Crunchbutton_Order extends Cana_Table {
|
|||||||
|
|
||||||
public function deliveryReply($admin) {
|
public function deliveryReply($admin) {
|
||||||
$act = false;
|
$act = false;
|
||||||
|
|
||||||
foreach ($this->_actions as $action) {
|
foreach ($this->_actions as $action) {
|
||||||
if ($action->id_admin && $admin->id_admin) {
|
if ($action->id_admin && $admin->id_admin) {
|
||||||
switch ($action->type) {
|
switch ($action->type) {
|
||||||
@ -2070,7 +2071,10 @@ class Crunchbutton_Order extends Cana_Table {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'delivery-rejected':
|
case 'delivery-rejected':
|
||||||
|
|
||||||
|
if ( $action->id_admin == $admin->id_admin ) {
|
||||||
$act = 'rejected';
|
$act = 'rejected';
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user