From 54456c4e6e6a7a599b21117d4332fed7483b6f80 Mon Sep 17 00:00:00 2001 From: nishizoe Date: Fri, 13 Jan 2017 19:30:18 +0900 Subject: [PATCH] =?UTF-8?q?(fixed=20#4124,=20BP=20from=20#1640)=20?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E3=83=A1=E3=83=BC=E3=83=AB=E3=81=AE=E5=8F=97?= =?UTF-8?q?=E3=81=91=E5=8F=96=E3=82=8A=E5=8F=AF=E5=90=A6=E8=A8=AD=E5=AE=9A?= =?UTF-8?q?=E3=82=92=E5=BF=85=E9=A0=88=E9=A0=85=E7=9B=AE=E3=81=A8=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communityTopic/templates/_configNotificationMail.php | 2 +- lib/form/opConfigCommunityTopicNotificationMailForm.class.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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]');