Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php if (version_compare(OPENPNE_VERSION, '3.6beta1-dev', '>=') && $form): ?>
<?php op_include_form('configNotificationMailBox', $form, array(
'mark_required_field' => false,
'mark_required_field' => true,
'url' => url_for('@config_community_topic_notification_mail?id='.$sf_request->getParameter('id')),
'button' => __('Save'),
)); ?>
Expand Down
4 changes: 2 additions & 2 deletions lib/form/opConfigCommunityTopicNotificationMailForm.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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]');
Expand Down