From e2a2930aac23ccf725b2135ee24a96c32bfd9d3f Mon Sep 17 00:00:00 2001 From: Roly Rudy Gutierrez Pinto Date: Tue, 26 Sep 2017 14:23:02 -0400 Subject: [PATCH 1/4] HOR-3908 --- .../engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php b/workflow/engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php index 8e80d42b9..62ef10aba 100644 --- a/workflow/engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php +++ b/workflow/engine/src/ProcessMaker/BusinessModel/WebEntryEvent.php @@ -53,7 +53,7 @@ class WebEntryEvent "WEE_TITLE" => array( "type" => "string", "required" => false, - "empty" => false, + "empty" => true, "defaultValues" => array(), "fieldNameAux" => "webEntryEventTitle" ), From 9c4fc9f20b13bc51273415fdff1e7103105be348 Mon Sep 17 00:00:00 2001 From: davidcallizaya Date: Thu, 28 Sep 2017 08:47:51 -0400 Subject: [PATCH 2/4] HOR-3905 WebEntry2: Fix the combination "Single-Anonymous" with "Redirect to custom URL" was working as Webentry1, it was fixed and goes through the Webentry2 flow. --- workflow/engine/src/ProcessMaker/BusinessModel/WebEntry.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workflow/engine/src/ProcessMaker/BusinessModel/WebEntry.php b/workflow/engine/src/ProcessMaker/BusinessModel/WebEntry.php index c30f08621..0231946b2 100644 --- a/workflow/engine/src/ProcessMaker/BusinessModel/WebEntry.php +++ b/workflow/engine/src/ProcessMaker/BusinessModel/WebEntry.php @@ -1080,7 +1080,9 @@ class WebEntry public function isWebEntryOne($weUid) { $webEntry = \WebEntryPeer::retrieveByPK($weUid); - return $webEntry->getWeType()==='SINGLE' && $webEntry->getWeAuthentication()==='ANONYMOUS'; + return $webEntry->getWeType() === 'SINGLE' + && $webEntry->getWeAuthentication() === 'ANONYMOUS' + && $webEntry->getWeCallback() === 'PROCESSMAKER'; } /** From 1ab89b34b0f516693a3dd85e6fd2661e3017e4cc Mon Sep 17 00:00:00 2001 From: davidcallizaya Date: Thu, 28 Sep 2017 09:07:57 -0400 Subject: [PATCH 3/4] HOR-3905 Fix CR. --- workflow/engine/src/ProcessMaker/BusinessModel/WebEntry.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workflow/engine/src/ProcessMaker/BusinessModel/WebEntry.php b/workflow/engine/src/ProcessMaker/BusinessModel/WebEntry.php index 0231946b2..df51d4540 100644 --- a/workflow/engine/src/ProcessMaker/BusinessModel/WebEntry.php +++ b/workflow/engine/src/ProcessMaker/BusinessModel/WebEntry.php @@ -2,6 +2,7 @@ namespace ProcessMaker\BusinessModel; use ProcessMaker\Core\System; +use WebEntryPeer; class WebEntry { @@ -1079,7 +1080,7 @@ class WebEntry */ public function isWebEntryOne($weUid) { - $webEntry = \WebEntryPeer::retrieveByPK($weUid); + $webEntry = WebEntryPeer::retrieveByPK($weUid); return $webEntry->getWeType() === 'SINGLE' && $webEntry->getWeAuthentication() === 'ANONYMOUS' && $webEntry->getWeCallback() === 'PROCESSMAKER'; From c94c1c63ae8de604c1e2736d01e783b6389632a6 Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Thu, 28 Sep 2017 09:52:33 -0400 Subject: [PATCH 4/4] HOR-3919 --- workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php b/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php index 5a1a3f7f7..d521627fb 100644 --- a/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php +++ b/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php @@ -105,7 +105,7 @@ class PluginRegistry */ public function registerPlugin($Namespace, $Filename = null) { - $ClassName = $Namespace . "plugin"; + $ClassName = $Namespace . "Plugin"; $plugin = new $ClassName($Namespace, $Filename); if (isset($this->_aPluginDetails[$Namespace])) {