|
|
|
@ -1201,17 +1201,22 @@ class Agenda |
|
|
|
if (isset($attachmentArray) && !empty($attachmentArray)) { |
|
|
|
if (isset($attachmentArray) && !empty($attachmentArray)) { |
|
|
|
$counter = 0; |
|
|
|
$counter = 0; |
|
|
|
foreach ($attachmentArray as $attachmentItem) { |
|
|
|
foreach ($attachmentArray as $attachmentItem) { |
|
|
|
if (empty($attachmentItems['id'])) { |
|
|
|
if (empty($attachmentItem['id'])) { |
|
|
|
continue; |
|
|
|
$this->addAttachment( |
|
|
|
|
|
|
|
$id, |
|
|
|
|
|
|
|
$attachmentItem, |
|
|
|
|
|
|
|
$attachmentCommentList[$counter], |
|
|
|
|
|
|
|
$this->course |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
$this->updateAttachment( |
|
|
|
|
|
|
|
$attachmentItem['id'], |
|
|
|
|
|
|
|
$id, |
|
|
|
|
|
|
|
$attachmentItem, |
|
|
|
|
|
|
|
$attachmentCommentList[$counter], |
|
|
|
|
|
|
|
$this->course |
|
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$this->updateAttachment( |
|
|
|
|
|
|
|
$attachmentItem['id'], |
|
|
|
|
|
|
|
$id, |
|
|
|
|
|
|
|
$attachmentItem, |
|
|
|
|
|
|
|
$attachmentCommentList[$counter], |
|
|
|
|
|
|
|
$this->course |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
$counter++; |
|
|
|
$counter++; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|