Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
7e9e8871 | 4 | | CiviCRM version 4.7 | |
6a488035 | 5 | +--------------------------------------------------------------------+ |
8c9251b3 | 6 | | Copyright CiviCRM LLC (c) 2004-2018 | |
6a488035 TO |
7 | +--------------------------------------------------------------------+ |
8 | | This file is a part of CiviCRM. | | |
9 | | | | |
10 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
11 | | under the terms of the GNU Affero General Public License | | |
12 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
13 | | | | |
14 | | CiviCRM is distributed in the hope that it will be useful, but | | |
15 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
16 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
17 | | See the GNU Affero General Public License for more details. | | |
18 | | | | |
19 | | You should have received a copy of the GNU Affero General Public | | |
20 | | License and the CiviCRM Licensing Exception along | | |
21 | | with this program; if not, contact CiviCRM LLC | | |
22 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
23 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
24 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
25 | +--------------------------------------------------------------------+ | |
d25dd0ee | 26 | */ |
6a488035 TO |
27 | |
28 | /** | |
29 | * | |
30 | * @package CRM | |
8c9251b3 | 31 | * @copyright CiviCRM LLC (c) 2004-2018 |
6a488035 TO |
32 | */ |
33 | class CRM_Contribute_Form_ContributionPage_Settings extends CRM_Contribute_Form_ContributionPage { | |
34 | ||
35 | /** | |
fe482240 | 36 | * Set variables up before form is built. |
6a488035 TO |
37 | */ |
38 | public function preProcess() { | |
39 | parent::preProcess(); | |
40 | } | |
41 | ||
42 | /** | |
95cdcc0f | 43 | * Set default values for the form. |
6a488035 | 44 | */ |
00be9182 | 45 | public function setDefaultValues() { |
6a488035 | 46 | $defaults = parent::setDefaultValues(); |
8381af80 | 47 | $soft_credit_types = CRM_Core_OptionGroup::values('soft_credit_type', TRUE, FALSE, FALSE, NULL, 'name'); |
6a488035 TO |
48 | |
49 | if ($this->_id) { | |
d1f8e278 | 50 | $title = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_ContributionPage', |
51 | $this->_id, | |
52 | 'title' | |
6a488035 | 53 | ); |
d1f8e278 | 54 | CRM_Utils_System::setTitle(ts('Title and Settings') . " ($title)"); |
55 | ||
56 | foreach (array('on_behalf', 'soft_credit') as $module) { | |
57 | $ufJoinDAO = new CRM_Core_DAO_UFJoin(); | |
58 | $ufJoinDAO->module = $module; | |
59 | $ufJoinDAO->entity_id = $this->_id; | |
d36a6185 | 60 | $ufJoinDAO->entity_table = 'civicrm_contribution_page'; |
d1f8e278 | 61 | if ($ufJoinDAO->find(TRUE)) { |
e63910c5 | 62 | $jsonData = CRM_Contribute_BAO_ContributionPage::formatModuleData($ufJoinDAO->module_data, TRUE, $module); |
d1f8e278 | 63 | if ($module == 'soft_credit') { |
64 | $defaults['honoree_profile'] = $ufJoinDAO->uf_group_id; | |
d1f8e278 | 65 | $defaults = array_merge($defaults, $jsonData); |
66 | $defaults['honor_block_is_active'] = $ufJoinDAO->is_active; | |
67 | } | |
68 | else { | |
69 | $defaults['onbehalf_profile_id'] = $ufJoinDAO->uf_group_id; | |
d1f8e278 | 70 | $defaults = array_merge($defaults, $jsonData); |
71 | $defaults['is_organization'] = $ufJoinDAO->is_active; | |
72 | } | |
73 | } | |
74 | else { | |
75 | if ($module == 'soft_credit') { | |
76 | $ufGroupDAO = new CRM_Core_DAO_UFGroup(); | |
77 | $ufGroupDAO->name = 'honoree_individual'; | |
78 | if ($ufGroupDAO->find(TRUE)) { | |
79 | $defaults['honoree_profile'] = $ufGroupDAO->id; | |
80 | } | |
81 | $defaults['soft_credit_types'] = array( | |
82 | CRM_Utils_Array::value('in_honor_of', $soft_credit_types), | |
83 | CRM_Utils_Array::value('in_memory_of', $soft_credit_types), | |
84 | ); | |
85 | } | |
86 | else { | |
87 | $ufGroupDAO = new CRM_Core_DAO_UFGroup(); | |
88 | $ufGroupDAO->name = 'on_behalf_organization'; | |
89 | if ($ufGroupDAO->find(TRUE)) { | |
90 | $defaults['onbehalf_profile_id'] = $ufGroupDAO->id; | |
91 | } | |
92 | $defaults['for_organization'] = ts('I am contributing on behalf of an organization.'); | |
93 | $defaults['is_for_organization'] = 1; | |
94 | } | |
8381af80 | 95 | } |
8381af80 | 96 | } |
6a488035 TO |
97 | } |
98 | else { | |
8381af80 | 99 | $ufGroupDAO = new CRM_Core_DAO_UFGroup(); |
100 | $ufGroupDAO->name = 'honoree_individual'; | |
101 | if ($ufGroupDAO->find(TRUE)) { | |
102 | $defaults['honoree_profile'] = $ufGroupDAO->id; | |
103 | } | |
104 | $defaults['soft_credit_types'] = array( | |
105 | CRM_Utils_Array::value('in_honor_of', $soft_credit_types), | |
21dfd5f5 | 106 | CRM_Utils_Array::value('in_memory_of', $soft_credit_types), |
8381af80 | 107 | ); |
133e2c99 | 108 | } |
109 | ||
6a488035 TO |
110 | return $defaults; |
111 | } | |
112 | ||
113 | /** | |
fe482240 | 114 | * Build the form object. |
6a488035 TO |
115 | */ |
116 | public function buildQuickForm() { | |
117 | ||
118 | $this->_first = TRUE; | |
119 | $attributes = CRM_Core_DAO::getAttribute('CRM_Contribute_DAO_ContributionPage'); | |
120 | ||
121 | // financial Type | |
573fd305 | 122 | CRM_Financial_BAO_FinancialType::getAvailableFinancialTypes($financialTypes, CRM_Core_Action::ADD); |
7cebf167 E |
123 | $financialOptions = array( |
124 | 'options' => $financialTypes, | |
125 | ); | |
126 | if (!CRM_Core_Permission::check('administer CiviCRM Financial Types')) { | |
127 | $financialOptions['context'] = 'search'; | |
0f73a79f | 128 | } |
7cebf167 | 129 | $this->addSelect('financial_type_id', $financialOptions, TRUE); |
6a488035 TO |
130 | |
131 | // name | |
132 | $this->add('text', 'title', ts('Title'), $attributes['title'], TRUE); | |
133 | ||
134 | //CRM-7362 --add campaigns. | |
135 | CRM_Campaign_BAO_Campaign::addCampaign($this, CRM_Utils_Array::value('campaign_id', $this->_values)); | |
136 | ||
5d51a2f9 | 137 | $this->add('wysiwyg', 'intro_text', ts('Introductory Message'), $attributes['intro_text']); |
6a488035 | 138 | |
5d51a2f9 | 139 | $this->add('wysiwyg', 'footer_text', ts('Footer Message'), $attributes['footer_text']); |
6a488035 | 140 | |
50c8cca4 | 141 | //Register schema which will be used for OnBehalOf and HonorOf profile Selector |
142 | CRM_UF_Page_ProfileEditor::registerSchemas(array('OrganizationModel', 'HouseholdModel')); | |
143 | ||
6a488035 TO |
144 | // is on behalf of an organization ? |
145 | $this->addElement('checkbox', 'is_organization', ts('Allow individuals to contribute and / or signup for membership on behalf of an organization?'), NULL, array('onclick' => "showHideByValue('is_organization',true,'for_org_text','table-row','radio',false);showHideByValue('is_organization',true,'for_org_option','table-row','radio',false);")); | |
146 | ||
1da35d57 | 147 | //CRM-15787 - If applicable, register 'membership_1' |
148 | $member = CRM_Member_BAO_Membership::getMembershipBlock($this->_id); | |
d9316a8e | 149 | $coreTypes = array('Contact', 'Organization'); |
1da35d57 | 150 | |
151 | $entities[] = array( | |
c301f76e | 152 | 'entity_name' => array('contact_1'), |
1da35d57 | 153 | 'entity_type' => 'OrganizationModel', |
50c8cca4 | 154 | ); |
13ad497e | 155 | |
1da35d57 | 156 | if ($member && $member['is_active']) { |
d9316a8e | 157 | $coreTypes[] = 'Membership'; |
1da35d57 | 158 | $entities[] = array( |
c301f76e | 159 | 'entity_name' => array('membership_1'), |
1da35d57 | 160 | 'entity_type' => 'MembershipModel', |
161 | ); | |
162 | } | |
c301f76e | 163 | |
164 | $allowCoreTypes = array_merge($coreTypes, CRM_Contact_BAO_ContactType::subTypes('Organization')); | |
1da35d57 | 165 | $allowSubTypes = array(); |
166 | ||
50c8cca4 | 167 | $this->addProfileSelector('onbehalf_profile_id', ts('Organization Profile'), $allowCoreTypes, $allowSubTypes, $entities); |
6a488035 | 168 | |
353ffa53 | 169 | $options = array(); |
6a488035 TO |
170 | $options[] = $this->createElement('radio', NULL, NULL, ts('Optional'), 1); |
171 | $options[] = $this->createElement('radio', NULL, NULL, ts('Required'), 2); | |
ba8f6a69 | 172 | $this->addGroup($options, 'is_for_organization', ''); |
d1f8e278 | 173 | $this->add('textarea', 'for_organization', ts('On behalf of Label'), array('rows' => 2, 'cols' => 50)); |
6a488035 TO |
174 | |
175 | // collect goal amount | |
176 | $this->add('text', 'goal_amount', ts('Goal Amount'), array('size' => 8, 'maxlength' => 12)); | |
177 | $this->addRule('goal_amount', ts('Please enter a valid money value (e.g. %1).', array(1 => CRM_Utils_Money::format('99.99', ' '))), 'money'); | |
178 | ||
179 | // is confirmation page enabled? | |
180 | $this->addElement('checkbox', 'is_confirm_enabled', ts('Use a confirmation page?')); | |
181 | ||
182 | // is this page shareable through social media ? | |
183 | $this->addElement('checkbox', 'is_share', ts('Allow sharing through social media?')); | |
184 | ||
185 | // is this page active ? | |
186 | $this->addElement('checkbox', 'is_active', ts('Is this Online Contribution Page Active?')); | |
187 | ||
188 | // should the honor be enabled | |
189 | $this->addElement('checkbox', 'honor_block_is_active', ts('Honoree Section Enabled'), NULL, array('onclick' => "showHonor()")); | |
190 | ||
133e2c99 | 191 | $this->add('text', 'honor_block_title', ts('Honoree Section Title'), array('maxlength' => 255, 'size' => 45)); |
6a488035 | 192 | |
133e2c99 | 193 | $this->add('textarea', 'honor_block_text', ts('Honoree Introductory Message'), array('rows' => 2, 'cols' => 50)); |
194 | ||
955b4327 CW |
195 | $this->addSelect('soft_credit_types', array( |
196 | 'label' => ts('Honor Types'), | |
197 | 'entity' => 'ContributionSoft', | |
198 | 'field' => 'soft_credit_type_id', | |
199 | 'multiple' => TRUE, | |
21dfd5f5 | 200 | 'class' => 'huge', |
955b4327 | 201 | )); |
133e2c99 | 202 | |
bf86535e | 203 | $entities = array( |
41fd8e26 | 204 | array( |
205 | 'entity_name' => 'contact_1', | |
206 | 'entity_type' => 'IndividualModel', | |
bf86535e | 207 | ), |
208 | ); | |
41fd8e26 | 209 | |
353ffa53 TO |
210 | $allowCoreTypes = array_merge(array( |
211 | 'Contact', | |
212 | 'Individual', | |
213 | 'Organization', | |
c301f76e | 214 | 'Household', |
353ffa53 | 215 | ), CRM_Contact_BAO_ContactType::subTypes('Individual')); |
133e2c99 | 216 | $allowSubTypes = array(); |
217 | ||
218 | $this->addProfileSelector('honoree_profile', ts('Honoree Profile'), $allowCoreTypes, $allowSubTypes, $entities); | |
41fd8e26 | 219 | |
a7488080 | 220 | if (!empty($this->_submitValues['honor_block_is_active'])) { |
133e2c99 | 221 | $this->addRule('soft_credit_types', ts('At least one value must be selected if Honor Section is active'), 'required'); |
222 | $this->addRule('honoree_profile', ts('Please select a profile used for honoree'), 'required'); | |
223 | } | |
6a488035 TO |
224 | |
225 | // add optional start and end dates | |
226 | $this->addDateTime('start_date', ts('Start Date')); | |
227 | $this->addDateTime('end_date', ts('End Date')); | |
228 | ||
3b67ab13 | 229 | $this->addFormRule(array('CRM_Contribute_Form_ContributionPage_Settings', 'formRule'), $this); |
6a488035 TO |
230 | |
231 | parent::buildQuickForm(); | |
232 | } | |
233 | ||
234 | /** | |
fe482240 | 235 | * Global validation rules for the form. |
6a488035 | 236 | * |
014c4014 TO |
237 | * @param array $values |
238 | * Posted values of the form. | |
6a488035 | 239 | * |
dd244018 EM |
240 | * @param $files |
241 | * @param $self | |
242 | * | |
a6c01b45 CW |
243 | * @return array |
244 | * list of errors to be posted back to the form | |
6a488035 | 245 | */ |
00be9182 | 246 | public static function formRule($values, $files, $self) { |
6a488035 | 247 | $errors = array(); |
3b67ab13 | 248 | $contributionPageId = $self->_id; |
6a488035 TO |
249 | //CRM-4286 |
250 | if (strstr($values['title'], '/')) { | |
251 | $errors['title'] = ts("Please do not use '/' in Title"); | |
252 | } | |
253 | ||
612cbad2 | 254 | // ensure on-behalf-of profile meets minimum requirements |
255 | if (!empty($values['is_organization'])) { | |
481a74f4 | 256 | if (empty($values['onbehalf_profile_id'])) { |
612cbad2 | 257 | $errors['onbehalf_profile_id'] = ts('Please select a profile to collect organization information on this contribution page.'); |
50c8cca4 | 258 | } |
259 | else { | |
612cbad2 | 260 | $requiredProfileFields = array('organization_name', 'email'); |
50c8cca4 | 261 | if (!CRM_Core_BAO_UFGroup::checkValidProfile($values['onbehalf_profile_id'], $requiredProfileFields)) { |
612cbad2 | 262 | $errors['onbehalf_profile_id'] = ts('Profile does not contain the minimum required fields for an On Behalf Of Organization'); |
dd244018 | 263 | } |
612cbad2 | 264 | } |
6a488035 | 265 | } |
cde484fd | 266 | |
6a488035 TO |
267 | //CRM-11494 |
268 | $start = CRM_Utils_Date::processDate($values['start_date']); | |
269 | $end = CRM_Utils_Date::processDate($values['end_date']); | |
270 | if (($end < $start) && ($end != 0)) { | |
271 | $errors['end_date'] = ts('End date should be after Start date.'); | |
272 | } | |
133e2c99 | 273 | |
a7488080 | 274 | if (!empty($self->_values['payment_processor']) && $financialType = CRM_Contribute_BAO_Contribution::validateFinancialType($values['financial_type_id'])) { |
133e2c99 | 275 | $errors['financial_type_id'] = ts("Financial Account of account relationship of 'Expense Account is' is not configured for Financial Type : ") . $financialType; |
3b67ab13 | 276 | } |
133e2c99 | 277 | |
6a488035 | 278 | //dont allow on behalf of save when |
cde484fd | 279 | //pre or post profile consists of membership fields |
8cc574cf | 280 | if ($contributionPageId && !empty($values['is_organization'])) { |
6a488035 TO |
281 | $ufJoinParams = array( |
282 | 'module' => 'CiviContribute', | |
283 | 'entity_table' => 'civicrm_contribution_page', | |
284 | 'entity_id' => $contributionPageId, | |
285 | ); | |
cde484fd | 286 | |
6a488035 TO |
287 | list($contributionProfiles['custom_pre_id'], |
288 | $contributionProfiles['custom_post_id'] | |
353ffa53 | 289 | ) = CRM_Core_BAO_UFJoin::getUFGroupIds($ufJoinParams); |
6a488035 TO |
290 | |
291 | $conProfileType = NULL; | |
292 | if ($contributionProfiles['custom_pre_id']) { | |
293 | $preProfileType = CRM_Core_BAO_UFField::getProfileType($contributionProfiles['custom_pre_id']); | |
294 | if ($preProfileType == 'Membership') { | |
295 | $conProfileType = "'Includes Profile (top of page)'"; | |
296 | } | |
297 | } | |
133e2c99 | 298 | |
6a488035 TO |
299 | if ($contributionProfiles['custom_post_id']) { |
300 | $postProfileType = CRM_Core_BAO_UFField::getProfileType($contributionProfiles['custom_post_id']); | |
301 | if ($postProfileType == 'Membership') { | |
353ffa53 | 302 | $conProfileType = empty($conProfileType) ? "'Includes Profile (bottom of page)'" : "{$conProfileType} and 'Includes Profile (bottom of page)'"; |
6a488035 TO |
303 | } |
304 | } | |
305 | if (!empty($conProfileType)) { | |
306 | $errors['is_organization'] = ts("You should move the membership related fields configured in %1 to the 'On Behalf' profile for this Contribution Page", array(1 => $conProfileType)); | |
307 | } | |
308 | } | |
309 | return $errors; | |
310 | } | |
311 | ||
312 | /** | |
fe482240 | 313 | * Process the form. |
6a488035 TO |
314 | */ |
315 | public function postProcess() { | |
316 | // get the submitted form values. | |
317 | $params = $this->controller->exportValues($this->_name); | |
318 | ||
319 | // we do this in case the user has hit the forward/back button | |
320 | if ($this->_id) { | |
321 | $params['id'] = $this->_id; | |
322 | } | |
323 | else { | |
324 | $session = CRM_Core_Session::singleton(); | |
325 | $params['created_id'] = $session->get('userID'); | |
326 | $params['created_date'] = date('YmdHis'); | |
327 | $config = CRM_Core_Config::singleton(); | |
328 | $params['currency'] = $config->defaultCurrency; | |
329 | } | |
330 | ||
331 | $params['is_confirm_enabled'] = CRM_Utils_Array::value('is_confirm_enabled', $params, FALSE); | |
332 | $params['is_share'] = CRM_Utils_Array::value('is_share', $params, FALSE); | |
333 | $params['is_active'] = CRM_Utils_Array::value('is_active', $params, FALSE); | |
334 | $params['is_credit_card_only'] = CRM_Utils_Array::value('is_credit_card_only', $params, FALSE); | |
335 | $params['honor_block_is_active'] = CRM_Utils_Array::value('honor_block_is_active', $params, FALSE); | |
0d8afee2 | 336 | $params['is_for_organization'] = !empty($params['is_organization']) ? CRM_Utils_Array::value('is_for_organization', $params, FALSE) : 0; |
6a488035 TO |
337 | |
338 | $params['start_date'] = CRM_Utils_Date::processDate($params['start_date'], $params['start_date_time'], TRUE); | |
339 | $params['end_date'] = CRM_Utils_Date::processDate($params['end_date'], $params['end_date_time'], TRUE); | |
340 | ||
341 | $params['goal_amount'] = CRM_Utils_Rule::cleanMoney($params['goal_amount']); | |
342 | ||
343 | if (!$params['honor_block_is_active']) { | |
344 | $params['honor_block_title'] = NULL; | |
345 | $params['honor_block_text'] = NULL; | |
346 | } | |
d1f8e278 | 347 | |
6a488035 TO |
348 | $dao = CRM_Contribute_BAO_ContributionPage::create($params); |
349 | ||
6a488035 | 350 | $ufJoinParams = array( |
d1f8e278 | 351 | 'is_organization' => array( |
352 | 'module' => 'on_behalf', | |
c301f76e | 353 | 'entity_table' => 'civicrm_contribution_page', |
354 | 'entity_id' => $dao->id, | |
355 | ), | |
356 | 'honor_block_is_active' => array( | |
357 | 'module' => 'soft_credit', | |
358 | 'entity_table' => 'civicrm_contribution_page', | |
359 | 'entity_id' => $dao->id, | |
360 | ), | |
6a488035 TO |
361 | ); |
362 | ||
133e2c99 | 363 | foreach ($ufJoinParams as $index => $ufJoinParam) { |
a7488080 | 364 | if (!empty($params[$index])) { |
d1f8e278 | 365 | // first delete all past entries |
366 | CRM_Core_BAO_UFJoin::deleteAll($ufJoinParam); | |
367 | $ufJoinParam['uf_group_id'] = $params[$index]; | |
874c9be7 | 368 | $ufJoinParam['weight'] = 1; |
d1f8e278 | 369 | $ufJoinParam['is_active'] = 1; |
874c9be7 | 370 | if ($index == 'honor_block_is_active') { |
874c9be7 | 371 | $ufJoinParam['uf_group_id'] = $params['honoree_profile']; |
e63910c5 | 372 | $ufJoinParam['module_data'] = CRM_Contribute_BAO_ContributionPage::formatModuleData($params, FALSE, 'soft_credit'); |
874c9be7 TO |
373 | } |
374 | else { | |
d1f8e278 | 375 | $ufJoinParam['uf_group_id'] = $params['onbehalf_profile_id']; |
e63910c5 | 376 | $ufJoinParam['module_data'] = CRM_Contribute_BAO_ContributionPage::formatModuleData($params, FALSE, 'on_behalf'); |
133e2c99 | 377 | } |
874c9be7 TO |
378 | CRM_Core_BAO_UFJoin::create($ufJoinParam); |
379 | } | |
d1f8e278 | 380 | else { |
381 | if ($index == 'honor_block_is_active') { | |
382 | $params['honor_block_title'] = NULL; | |
383 | $params['honor_block_text'] = NULL; | |
384 | } | |
385 | else { | |
386 | $params['for_organization'] = NULL; | |
387 | } | |
388 | ||
133e2c99 | 389 | //On subsequent honor_block_is_active uncheck, disable(don't delete) |
390 | //that particular honoree profile entry in UFjoin table, CRM-13981 | |
391 | $ufId = CRM_Core_BAO_UFJoin::findJoinEntryId($ufJoinParam); | |
392 | if ($ufId) { | |
393 | $ufJoinParam['uf_group_id'] = CRM_Core_BAO_UFJoin::findUFGroupId($ufJoinParam); | |
394 | $ufJoinParam['is_active'] = 0; | |
395 | CRM_Core_BAO_UFJoin::create($ufJoinParam); | |
396 | } | |
397 | } | |
6a488035 TO |
398 | } |
399 | ||
400 | $this->set('id', $dao->id); | |
401 | if ($this->_action & CRM_Core_Action::ADD) { | |
402 | $url = 'civicrm/admin/contribute/amount'; | |
403 | $urlParams = "action=update&reset=1&id={$dao->id}"; | |
404 | // special case for 'Save and Done' consistency. | |
405 | if ($this->controller->getButtonName('submit') == '_qf_Amount_upload_done') { | |
406 | $url = 'civicrm/admin/contribute'; | |
407 | $urlParams = 'reset=1'; | |
408 | CRM_Core_Session::setStatus(ts("'%1' information has been saved.", | |
353ffa53 TO |
409 | array(1 => $this->getTitle()) |
410 | ), ts('Saved'), 'success'); | |
6a488035 TO |
411 | } |
412 | ||
413 | CRM_Utils_System::redirect(CRM_Utils_System::url($url, $urlParams)); | |
414 | } | |
415 | parent::endPostProcess(); | |
416 | } | |
417 | ||
418 | /** | |
419 | * Return a descriptive name for the page, used in wizard header | |
420 | * | |
421 | * @return string | |
6a488035 TO |
422 | */ |
423 | public function getTitle() { | |
424 | return ts('Title and Settings'); | |
425 | } | |
96025800 | 426 | |
6a488035 | 427 | } |