PMCORE-1388
This commit is contained in:
@@ -28,7 +28,7 @@ $factory->define(\ProcessMaker\Model\Documents::class, function (Faker $faker) {
|
||||
];
|
||||
});
|
||||
|
||||
// Create a dynaform with the foreign keys
|
||||
// Create a document related to the case notes
|
||||
$factory->state(\ProcessMaker\Model\Documents::class, 'case_notes', function (Faker $faker) {
|
||||
return [
|
||||
'APP_DOC_UID' => G::generateUniqueID(),
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Crypt;
|
||||
use ProcessMaker\BusinessModel\Cases as BmCases;
|
||||
use ProcessMaker\BusinessModel\EmailServer;
|
||||
/*----------------------------------********---------------------------------*/
|
||||
use ProcessMaker\ChangeLog\ChangeLog;
|
||||
@@ -3475,7 +3476,7 @@ class WsBase
|
||||
}
|
||||
|
||||
//Add note case
|
||||
$appNote = new ProcessMaker\BusinessModel\Cases();
|
||||
$appNote = new BmCases();
|
||||
$response = $appNote->addNote($caseUid, $userUid, $note, $sendMail, $files);
|
||||
|
||||
//Response
|
||||
|
||||
@@ -231,7 +231,7 @@ class AppNotes extends BaseAppNotes
|
||||
}
|
||||
|
||||
if (!empty($attachFileLinks)) {
|
||||
$body = $body . "<br>" . G::LoadTranslation('ID_ATTACHED_FILES') . ": <br>" . implode("<br>", $attachFileLinks);
|
||||
$body = $body . "<br />" . G::LoadTranslation('ID_ATTACHED_FILES') . ": <br />" . implode("<br />", $attachFileLinks);
|
||||
}
|
||||
$users = new Users();
|
||||
$recipientsArray = explode(",", $noteRecipients);
|
||||
|
||||
@@ -3858,7 +3858,6 @@ class Cases
|
||||
* @param array $files
|
||||
*
|
||||
* @return array
|
||||
* @throws Exception
|
||||
*/
|
||||
public function addNote($appUid, $userUid, $note, $sendMail = false, $files = [])
|
||||
{
|
||||
@@ -3925,7 +3924,7 @@ class Cases
|
||||
* @param string $userUid
|
||||
* @param string $appUid
|
||||
* @param array $filesReferences
|
||||
* @param string $appDocUid
|
||||
* @param int $noteId
|
||||
*
|
||||
* @return array
|
||||
* @throws Exception
|
||||
|
||||
@@ -609,6 +609,7 @@ function getMysqlVersion()
|
||||
* @param string $appUid
|
||||
* @param string $appDocUid
|
||||
* @param int $version
|
||||
* @param bool $upload
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user