diff --git a/workflow/engine/classes/model/AppNotes.php b/workflow/engine/classes/model/AppNotes.php
index 7d9eb4bfd..a98d7e793 100644
--- a/workflow/engine/classes/model/AppNotes.php
+++ b/workflow/engine/classes/model/AppNotes.php
@@ -149,14 +149,15 @@ class AppNotes extends BaseAppNotes {
return false;
}
+ $oUser = new Users();
+ $aUser = $oUser->load($usrUid);
+ $authorName = ((($aUser['USR_FIRSTNAME'] != '') || ($aUser['USR_LASTNAME'] != '')) ? $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'] . ' ' : '') . '<' . $aUser['USR_EMAIL'] . '>';
+
G::LoadClass('case');
$oCase = new Cases ();
- $aFields = $oCase->loadCase( $appUid );
-
- $configNoteNotification['subject']=G::LoadTranslation('ID_MESSAGE_SUBJECT_NOTE_NOTIFICATION')." @@APP_TITLE ";
- $configNoteNotification['body']=G::LoadTranslation('ID_CASE').": @@APP_TITLE
".G::LoadTranslation('ID_AUTHOR').": @@USR_USRNAME
$noteContent";
-
-
+ $aFields = $oCase->loadCase( $appUid );
+ $configNoteNotification['subject']= G::LoadTranslation('ID_MESSAGE_SUBJECT_NOTE_NOTIFICATION')." @#APP_TITLE ";
+ $configNoteNotification['body'] = G::LoadTranslation('ID_CASE') . ": @$APP_TITLE
" . G::LoadTranslation('ID_AUTHOR').": $authorName
$noteContent";
if ($sFrom == '') {
$sFrom = '"ProcessMaker"';
diff --git a/workflow/engine/classes/model/om/BaseAppNotes.php b/workflow/engine/classes/model/om/BaseAppNotes.php
index 97c18c058..21fdfdd5a 100644
--- a/workflow/engine/classes/model/om/BaseAppNotes.php
+++ b/workflow/engine/classes/model/om/BaseAppNotes.php
@@ -541,7 +541,7 @@ abstract class BaseAppNotes extends BaseObject implements Persistent {
throw $e;
}
}
-
+
/**
* Stores the object in the database. If the object is new,
* it inserts it; otherwise an update is performed. This method
@@ -572,7 +572,44 @@ abstract class BaseAppNotes extends BaseObject implements Persistent {
throw $e;
}
}
-
+
+ /**
+ * @todo This function must be moved to Propel Generator in the correct syntax.
+ */
+
+
+ public function createFromArray($aData, $con = null, $sw=true)
+ {
+ if ($con === null) {
+ $con = Propel::getConnection(AppNotesPeer::DATABASE_NAME);
+ }
+ if ($sw) $con->begin();
+ try {
+ $this->fromArray ( $aData, BasePeer::TYPE_FIELDNAME );
+ if ($this->validate ()) {
+ $result = $this->save ($con, $sw);
+ } else {
+ if ($sw) $con->rollback ();
+ $e = new Exception ( "Failed Validation in class " . get_class ( $this ) . "." );
+ $e->aValidationFailures = $this->getValidationFailures ();
+ throw ($e);
+ }
+ if ($sw) $con->commit ();
+ return $result;
+ } catch ( Exception $e ) {
+ if ($sw) $con->rollback ();
+ throw ($e);
+ }
+ }
+
+ /**
+ * @todo This function must be moved to Propel Generator in the correct syntax.
+ */
+ public function updateFromArray($aData, $con = null, $sw = true)
+ {
+ return 0;
+ }
+
/**
* Stores the object in the database.
*
diff --git a/workflow/engine/config/schema.xml b/workflow/engine/config/schema.xml
index 97db638fd..dcecc522a 100644
--- a/workflow/engine/config/schema.xml
+++ b/workflow/engine/config/schema.xml
@@ -2720,7 +2720,7 @@