FIX: fix latent bug in save pipeline - trim backslashes from handler name

This commit is contained in:
Michal Kváček
2017-03-13 12:08:26 +01:00
parent ed8e2565ff
commit ce58b325c8
4 changed files with 3 additions and 23 deletions
@@ -17,8 +17,9 @@ class SaveContactInformation implements Process
*/
function handle(Content & $page, array & $input)
{
if ($page->moduleHandler != ContactForm::class)
if (trim($page->moduleHandler, '\\') != ContactForm::class) {
return;
}
$settings = [
'phone' => $input['phone'],