fix
This commit is contained in:
parent
0f21a61814
commit
88d426dc6b
@ -281,19 +281,19 @@ class MailController
|
||||
$item_list = array();
|
||||
if ($act == 2) {
|
||||
foreach ($all_attachments as $attachment_item) {
|
||||
$itemid = $attachment_item['itemid'];
|
||||
$itemid = $attachment_item['item_id'];
|
||||
$itemexists = false;
|
||||
foreach ($item_list as $key => $item) {
|
||||
if ($item['item_id'] == $itemid) {
|
||||
$itemexists = true;
|
||||
$item_list[$key]['item_num'] += $attachment_item['itemnum'];
|
||||
$item_list[$key]['item_num'] += $attachment_item['item_num'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!$itemexists) {
|
||||
$item_list[] = array(
|
||||
'item_id' => $attachment_item['itemid'],
|
||||
'item_num' => $attachment_item['itemnum']
|
||||
'item_id' => $attachment_item['item_id'],
|
||||
'item_num' => $attachment_item['item_num']
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user