Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
Added inputFilter for description
Browse files Browse the repository at this point in the history
  • Loading branch information
knasher committed Mar 20, 2015
1 parent 59da75d commit 44fd23c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/Opg/Core/Model/Entity/Note/Note.php
Expand Up @@ -295,6 +295,29 @@ public function getInputFilter()
)
);

$inputFilter->add(
$factory->createInput(
array(
'name' => 'description',
'required' => true,
'filters' => array(
array('name' => 'StripTags'),
array('name' => 'StringTrim'),
),
'validators' => array(
array(
'name' => 'StringLength',
'options' => array(
'encoding' => 'UTF-8',
'min' => 1,
'max' => 2000,
)
)
)
)
)
);

$this->inputFilter = $inputFilter;
}

Expand Down

0 comments on commit 44fd23c

Please sign in to comment.