BUGFIX: Fixed front end post entry form validation and its test (merged from r108801)

This commit is contained in:
Ingo Schommer 2010-09-01 20:52:19 +00:00
parent c925304eca
commit 475a190112
2 changed files with 3 additions and 3 deletions

View File

@ -238,7 +238,7 @@ class BlogHolder_Controller extends BlogTree_Controller {
$submitAction = new FormAction('postblog', _t('BlogHolder.POST', 'Post blog entry')); $submitAction = new FormAction('postblog', _t('BlogHolder.POST', 'Post blog entry'));
$actions = new FieldSet($submitAction); $actions = new FieldSet($submitAction);
$validator = new RequiredFields('Title','Content'); $validator = new RequiredFields('Title','BlogPost');
$form = new Form($this, 'BlogEntryForm',$fields, $actions,$validator); $form = new Form($this, 'BlogEntryForm',$fields, $actions,$validator);

View File

@ -26,7 +26,7 @@ class BlogHolderFunctionalTest extends FunctionalTest {
$data = array( $data = array(
'Title'=>'Disallowed', 'Title'=>'Disallowed',
'Author'=>'Disallowed', 'Author'=>'Disallowed',
'Content'=>'Disallowed', 'BlogPost'=>'Disallowed',
'action_postblog' => 'Post blog entry', 'action_postblog' => 'Post blog entry',
'SecurityID' => $securityID 'SecurityID' => $securityID
); );
@ -40,7 +40,7 @@ class BlogHolderFunctionalTest extends FunctionalTest {
$data = array( $data = array(
'Title'=>'Allowed', 'Title'=>'Allowed',
'Author'=>'Allowed', 'Author'=>'Allowed',
'Content'=>'Allowed', 'BlogPost'=>'Allowed',
'action_postblog' => 'Post blog entry', 'action_postblog' => 'Post blog entry',
'SecurityID' => $securityID 'SecurityID' => $securityID
); );