Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wysiwyg support for i18n event field - Confirmation Email Text #20922

Closed
wants to merge 2 commits into from
Closed
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
2 changes: 1 addition & 1 deletion CRM/Core/I18n/SchemaStructure.php
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ public static function &widgets() {
'cols' => "50",
],
'confirm_email_text' => [
'type' => "TextArea",
'type' => "RichTextEditor",
'rows' => "4",
'cols' => "50",
],
Expand Down
4 changes: 2 additions & 2 deletions CRM/Event/DAO/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Event/Event.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:4b2cc938c8bb6e8bcba91513d109ff5f)
* (GenCodeChecksum:cac18042d92a7b9b75c08f8519ef890c)
*/

/**
Expand Down Expand Up @@ -1135,7 +1135,7 @@ public static function &fields() {
'bao' => 'CRM_Event_BAO_Event',
'localizable' => 1,
'html' => [
'type' => 'TextArea',
'type' => 'RichTextEditor',
],
'add' => '1.7',
],
Expand Down
2 changes: 1 addition & 1 deletion CRM/Event/Form/ManageEvent/Registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ public function buildMailBlock(&$form) {
$form->registerRule('emailList', 'callback', 'emailList', 'CRM_Utils_Rule');
$attributes = CRM_Core_DAO::getAttribute('CRM_Event_DAO_Event');
$form->addYesNo('is_email_confirm', ts('Send Confirmation Email?'), NULL, NULL, ['onclick' => "return showHideByValue('is_email_confirm','','confirmEmail','block','radio',false);"]);
$form->add('textarea', 'confirm_email_text', ts('Text'), $attributes['confirm_email_text']);
$form->addField('confirm_email_text', ['label' => ts('Text'), 'class' => 'collapsed']);
$form->add('text', 'cc_confirm', ts('CC Confirmation To'), CRM_Core_DAO::getAttribute('CRM_Event_DAO_Event', 'cc_confirm'));
$form->addRule('cc_confirm', ts('Please enter a valid list of comma delimited email addresses'), 'emailList');
$form->add('text', 'bcc_confirm', ts('BCC Confirmation To'), CRM_Core_DAO::getAttribute('CRM_Event_DAO_Event', 'bcc_confirm'));
Expand Down
2 changes: 1 addition & 1 deletion xml/schema/Event/Event.xml
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@
<type>text</type>
<title>Confirmation Email Text</title>
<html>
<type>TextArea</type>
<type>RichTextEditor</type>
<rows>4</rows>
<cols>50</cols>
</html>
Expand Down