Skip to content

Commit

Permalink
Delete quickform rules on hidden fields
Browse files Browse the repository at this point in the history
  • Loading branch information
olafgleba committed Jul 24, 2012
1 parent 88aaaef commit cc9def7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions welcompose/admin/content/pages_blogs_postings_add.php
Expand Up @@ -172,7 +172,6 @@
// hidden for page
$page_id = $FORM->addElement('hidden', 'page', array('id' => 'page'));


// textfield for title
$title = $FORM->addElement('text', 'title',
array('id' => 'blog_posting_title', 'maxlength' => 255, 'class' => 'w300 urlify'),
Expand Down Expand Up @@ -206,15 +205,12 @@

// hidden for podcast id
$podcast_id = $FORM->addElement('hidden', 'podcast_id', array('id' => 'podcast_id'));
$podcast_id->addRule('regex', gettext('The podcast id is expected to be numeric'), WCOM_REGEX_NUMERIC);

// hidden for mediafile id
$podcast_media_object = $FORM->addElement('hidden', 'podcast_media_object', array('id' => 'podcast_media_object'));
$podcast_media_object->addRule('regex', gettext('The media file id is expected to be numeric'), WCOM_REGEX_NUMERIC);

// hidden for display status
$podcast_details_display = $FORM->addElement('hidden', 'podcast_details_display', array('id' => 'podcast_details_display'));
$podcast_details_display->addRule('regex', gettext('Podcast details display is expected to be numeric'), WCOM_REGEX_NUMERIC);
$podcast_details_display = $FORM->addElement('hidden', 'podcast_details_display', array('id' => 'podcast_details_display'));

// textfield for title
$podcast_title = $FORM->addElement('text', 'podcast_title',
Expand Down

0 comments on commit cc9def7

Please sign in to comment.