PMCORE-1388

This commit is contained in:
Paula Quispe
2020-06-12 21:07:20 -04:00
parent 53166cae45
commit b821c2ee85
5 changed files with 6 additions and 5 deletions

View File

@@ -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(),

View File

@@ -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

View File

@@ -231,7 +231,7 @@ class AppNotes extends BaseAppNotes
}
if (!empty($attachFileLinks)) {
$body = $body . "<br>" . G::LoadTranslation('ID_ATTACHED_FILES') . ":&nbsp; <br>" . implode("<br>", $attachFileLinks);
$body = $body . "<br />" . G::LoadTranslation('ID_ATTACHED_FILES') . ":&nbsp; <br />" . implode("<br />", $attachFileLinks);
}
$users = new Users();
$recipientsArray = explode(",", $noteRecipients);

View File

@@ -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

View File

@@ -609,6 +609,7 @@ function getMysqlVersion()
* @param string $appUid
* @param string $appDocUid
* @param int $version
* @param bool $upload
*
* @return string
*/