diff --git a/apps/pc_frontend/modules/communityTopic/templates/_configNotificationMail.php b/apps/pc_frontend/modules/communityTopic/templates/_configNotificationMail.php index 3b7c0b5..1b1111a 100644 --- a/apps/pc_frontend/modules/communityTopic/templates/_configNotificationMail.php +++ b/apps/pc_frontend/modules/communityTopic/templates/_configNotificationMail.php @@ -1,6 +1,6 @@ =') && $form): ?> false, + 'mark_required_field' => true, 'url' => url_for('@config_community_topic_notification_mail?id='.$sf_request->getParameter('id')), 'button' => __('Save'), )); ?> diff --git a/lib/form/opConfigCommunityTopicNotificationMailForm.class.php b/lib/form/opConfigCommunityTopicNotificationMailForm.class.php index 97c48fd..aed91de 100644 --- a/lib/form/opConfigCommunityTopicNotificationMailForm.class.php +++ b/lib/form/opConfigCommunityTopicNotificationMailForm.class.php @@ -47,7 +47,7 @@ public function configure() ))); $this->setValidator('to_pc_address', new sfValidatorChoice(array( 'choices' => array_keys($this->choices), - 'required' => false, + 'required' => true, ))); $this->setWidget('to_mobile_address', new sfWidgetFormSelectRadio(array( @@ -57,7 +57,7 @@ public function configure() ))); $this->setValidator('to_mobile_address', new sfValidatorChoice(array( 'choices' => array_keys($this->choices), - 'required' => false, + 'required' => true, ))); $this->widgetSchema->setNameFormat('topic_notify[%s]');