Permalink
Browse files

[Jobs] Fix #395: WYSIWYG editor does not work.

* Add missing method Jobs/Filter/ViewModelTemplateFilterForm::setJsonLdHelper()
  • Loading branch information...
TiSiE committed Jul 10, 2017
1 parent 38be376 commit f8baa22306a8b68648069c44036a99fb98ecf368
@@ -12,6 +12,7 @@
namespace Jobs\Filter;
use Jobs\Entity\Job;
use Jobs\View\Helper\JsonLd;
use Zend\Filter\FilterInterface;
use Zend\View\Model\ViewModel;
@@ -63,6 +64,33 @@
*/
protected $imageFileCacheHelper;
/**
*
*
* @var JsonLd
*/
protected $jsonLdHelper;
/**
* @param \Jobs\View\Helper\JsonLd $jsonLdHelper
*
* @return self
*/
public function setJsonLdHelper(JsonLd $jsonLdHelper)
{
$this->jsonLdHelper = $jsonLdHelper;
return $this;
}
/**
* @return \Jobs\View\Helper\JsonLd
*/
public function getJsonLdHelper()
{
return $this->jsonLdHelper;
}
/**
* @param $config
*/
@@ -35,6 +35,7 @@ protected function extract($form)
{
$job = $form->getEntity();
$this->job = $job; /* @var \Jobs\Entity\Job $job */
$this->getJsonLdHelper()->setJob($job);
$this->setApplyData();
$this->setOrganizationInfo();
$this->setLocation();
@@ -10,7 +10,6 @@
namespace Jobs\Filter;
use Jobs\View\Helper\JsonLd;
/**
* template ViewModel html
@@ -21,34 +20,6 @@
*/
class ViewModelTemplateFilterJob extends ViewModelTemplateFilterAbstract
{
/**
*
*
* @var JsonLd
*/
protected $jsonLdHelper;
/**
* @param \Jobs\View\Helper\JsonLd $jsonLdHelper
*
* @return self
*/
public function setJsonLdHelper(JsonLd $jsonLdHelper)
{
$this->jsonLdHelper = $jsonLdHelper;
return $this;
}
/**
* @return \Jobs\View\Helper\JsonLd
*/
public function getJsonLdHelper()
{
return $this->jsonLdHelper;
}
/**
* assign the form-elements to the template
* @param \Jobs\Entity\Job $job

0 comments on commit f8baa22

Please sign in to comment.