bug PR-5.0-dev ? Pending

User tests: Successful: Unsuccessful:

avatar drmenzelit
drmenzelit
19 Nov 2022

Pull Request for Issue #34757.
Probably not the best solution, but the only one a I can think at the moment.

This problem is related to #31218 and is something we need to reconsider for the next major Joomla version.

Summary of Changes

Modified the way the checkbox "send mail copy" is rendered. It uses now current Bootstrap code to display checkbox and label in a line.

Testing Instructions

See issue #34757

Actual result BEFORE applying this Pull Request

See issue #34757

Expected result AFTER applying this Pull Request

image

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar drmenzelit drmenzelit - open - 19 Nov 2022
avatar drmenzelit drmenzelit - change - 19 Nov 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Nov 2022
Category Front End com_contact
avatar Kostelano Kostelano - test_item - 19 Nov 2022 - Tested successfully
avatar Kostelano
Kostelano - comment - 19 Nov 2022

I have tested this item successfully on 6b61bf4

Thanks, it works.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39252.

avatar brianteeman
brianteeman - comment - 19 Nov 2022

The problem with this is that it only fixes this one field. If you have another checkbox type field on that page then you still get the problem.

From what I can tell it needs a display:inline-block on the .controls class

avatar drmenzelit
drmenzelit - comment - 20 Nov 2022

display:inline-block is not enough, because .controls is inside .control-group together with .control-label
If .control-group would have another unique class for the copy field, one could use display: flex ... but that is not the case, all fields have only .control-group...

avatar drmenzelit
drmenzelit - comment - 20 Nov 2022

Please check #39259

avatar chmst
chmst - comment - 23 Nov 2022

If you change your condition to

<?php if ($field->type != 'Checkbox') : ?>

the form can have many checkboxes.

avatar HLeithner
HLeithner - comment - 2 May 2023

This pull request has been automatically rebased to 4.3-dev.

avatar HLeithner
HLeithner - comment - 31 Aug 2023

This functionally should be removed completely instead of fixing it. I close this PR since allowing the user to send emails to an arbitrary address is a security issue.

avatar HLeithner HLeithner - close - 31 Aug 2023
avatar HLeithner HLeithner - change - 31 Aug 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-08-31 15:42:19
Closed_By HLeithner
Labels Added: bug PR-5.0-dev ?

Add a Comment

Login with GitHub to post a comment