-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
made output of space conditional -> cause problems with gui tests #5200
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
Conversation
|
Please provide a description of what you have changed, What the problem is that you re trying to resolve and how people can test it. Otherwise this will be closed. Thanks |
|
I changed the template how Joomla renders the fields in an backend edit view. In detail, the template generates a div-element with the css class "control-group ". Always with an additional space at the end of the css class "control-group". My fix sets the css class to "control-group" if there is no additional css class. (without the additional space) else the space is added. Use the 'renderFieldset' function in the 'JForm' class, Joomla uses the layout in renderfield.php to create the form fields. The output of this method is not the same as in the Joomla core extensions. This fix makes the output consistent with the Joomla core extension template. |
|
@test successful Result is: How to test
Thanks @Wolf-Rost only one more tester is needed here. |
|
Travis fails with this error |
|
@test I can confirm the issue After applying the patch I can see that the space before the This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5200. |
|
@brianteeman can you say where you see it? On which fields / views? Can you try com_content --> "your itm" --> Options as reference? (<- That work for me) |
|
Maybe this is realted to this here? (Note the space beteween the Can you test this in your view as i can't reproduce this? |
|
I was testing You have to test with view source not inspect element This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5200. |
|
Thanks @brianteeman that does the trick. I can confirm your findings and the fix. @Wolf-Rost can you also remove the space beteween the So we can move this forward. |
|
Its confusing that the developer tools like chrome inspector and firebug On 3 January 2015 at 11:59, zero-24 [email protected] wrote:
|
Wondering when $displayData['options']['rel'] is used, as taking off that space could create an issue when it is. |
|
hmm ok so we can fix it like the first? @infograf768 <div class="control-group<?php echo empty($displayData['options']['class']) ? "" : " " . $displayData['options']['class']; ?>"<?php echo empty($displayData['options']['rel']) ? "" : " " . $displayData['options']['rel']; ?>> |
|
Yep and this PR has to be redone towards staging. |
|
Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org/joomla-cms/5200 |
|
done @infograf768 @Wolf-Rost can you have a look into the new PR (#5610) and test it? If you need help by applying a patch you can use the com_patchtester from: https://github.com/joomla-extensions/patchtester/releases Docs: https://docs.joomla.org/Component_Patchtester_for_Testers Thanks! Closing here in four of the new PR against staging: #5610 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5200. |

I changed the template how Joomla renders the fields in an backend edit view. In detail, the template generates a div-element with the css class "control-group ". Always with an additional space at the end of the css class "control-group".
My fix sets the css class to "control-group" if there is no additional css class. (without the additional space) else the space is added.
Use the 'renderFieldset' function in the 'JForm' class, Joomla uses the layout in renderfield.php to create the form fields.
The output of this method is not the same as in the Joomla core extensions. This fix makes the output consistent with the Joomla core extension template.
How to test (edit by @zero-24 )