User tests: Successful: Unsuccessful:
<?php if ($field->name === 'contact_email_copy' && !$this->params->get('show_email_copy')) : ?>
<?php continue; ?>
<?php endif; ?>
$field->name never equals 'contact_email_copy' (should be $field->fieldname instead).Send Copy to Submitter (show_email_copy) works correctly without these lines above.Create a contact (com_contact).
Create a menu item (Single Contact) and apply this contact.
In created contact, tabulator Form: Test setting Send Copy to Submitter (Show|Hide) if field Send a copy to yourself is shown correctly or not.
Apply patch. Test again Send Copy to Submitter (Show|Hide) if field Send a copy to yourself is shown correctly or not.
| Status | New | ⇒ | Pending |
| Category | ⇒ | Front End com_contact |
I have tested this item
| Milestone |
Added: |
||
| Status | Pending | ⇒ | Ready to Commit |
| Labels |
Added:
?
?
|
||
| Status | Ready to Commit | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-02-12 15:51:42 |
| Closed_By | ⇒ | rdeutz | |
| Labels | |||
I have tested this item✅ successfully on 20d703d
That block of code is not needed:
$field->name is wrong, it should be $field->fieldname as @bertmert mentioned.
The field is removed in model already https://github.com/joomla/joomla-cms/blob/staging/components/com_contact/models/contact.php#L100-L103 (if Send Copy to Submitter parameter set to No).
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14029.