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) {
|
$factory->state(\ProcessMaker\Model\Documents::class, 'case_notes', function (Faker $faker) {
|
||||||
return [
|
return [
|
||||||
'APP_DOC_UID' => G::generateUniqueID(),
|
'APP_DOC_UID' => G::generateUniqueID(),
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Crypt;
|
use Illuminate\Support\Facades\Crypt;
|
||||||
|
use ProcessMaker\BusinessModel\Cases as BmCases;
|
||||||
use ProcessMaker\BusinessModel\EmailServer;
|
use ProcessMaker\BusinessModel\EmailServer;
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
use ProcessMaker\ChangeLog\ChangeLog;
|
use ProcessMaker\ChangeLog\ChangeLog;
|
||||||
@@ -3475,7 +3476,7 @@ class WsBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Add note case
|
//Add note case
|
||||||
$appNote = new ProcessMaker\BusinessModel\Cases();
|
$appNote = new BmCases();
|
||||||
$response = $appNote->addNote($caseUid, $userUid, $note, $sendMail, $files);
|
$response = $appNote->addNote($caseUid, $userUid, $note, $sendMail, $files);
|
||||||
|
|
||||||
//Response
|
//Response
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ class AppNotes extends BaseAppNotes
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($attachFileLinks)) {
|
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();
|
$users = new Users();
|
||||||
$recipientsArray = explode(",", $noteRecipients);
|
$recipientsArray = explode(",", $noteRecipients);
|
||||||
|
|||||||
@@ -3858,7 +3858,6 @@ class Cases
|
|||||||
* @param array $files
|
* @param array $files
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
* @throws Exception
|
|
||||||
*/
|
*/
|
||||||
public function addNote($appUid, $userUid, $note, $sendMail = false, $files = [])
|
public function addNote($appUid, $userUid, $note, $sendMail = false, $files = [])
|
||||||
{
|
{
|
||||||
@@ -3925,7 +3924,7 @@ class Cases
|
|||||||
* @param string $userUid
|
* @param string $userUid
|
||||||
* @param string $appUid
|
* @param string $appUid
|
||||||
* @param array $filesReferences
|
* @param array $filesReferences
|
||||||
* @param string $appDocUid
|
* @param int $noteId
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
|
|||||||
@@ -609,6 +609,7 @@ function getMysqlVersion()
|
|||||||
* @param string $appUid
|
* @param string $appUid
|
||||||
* @param string $appDocUid
|
* @param string $appDocUid
|
||||||
* @param int $version
|
* @param int $version
|
||||||
|
* @param bool $upload
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user