-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[6.0] Fix default values for position and currency. #46433
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
aligning the default position to the default of the params xml
|
Why were the defautl values not set in the database as they are with the other params |
|
@brianteeman maybe i don't understand your comment but afaik i did add them. See here: joomla-cms/installation/sql/mysql/base.sql Line 302 in 5e7bf48
|
@brianteeman In fact they were added to the SQL with PR #43974 . But the options are missing the "symbol" value. @TLWebdesign Not sure if we need an update SQL to fix that in database. but we should at least fix base.sql so it is right from the beginning on for new installations. |
|
I have tested this item ✅ successfully on 7a1db96 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46433. |
Updated the 'plg_fields_number' entry to include a 'symbol' property.
added missing symbol param
|
It still needs a little improvement. Currently, there is no space between the number and the currency symbol. And yes, the database value for the currency symbol is missing. |
|
Hi all the SQL is changed. @LadySolveig not adding a space is intentional as some currencies don't use spaces in between so now you get to choose to add a space or not. |
|
Thanks for the explanation, that's fine for me. 👍🏼 An override can be done at any time if someone wants a space between. |
|
they don't need to do an override. they can just type a space after the symbol and then there is a space in between the symbol and the number. |
Thats what I meant |
Yes thank you i overlooked that until richard pointed it out. i fixed it now :D thanks for noticing. Still much to learn. |
@brianteeman For new installations it has been fixed meanwhile in the base.sql. I think it does not need a new update SQL for updated sites. FOr these we still have the right PHP default. |
|
I have tested this item ✅ successfully on cb652ce This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46433. |
@lemuelvdm Please mark your test result in the issue tracker here https://issues.joomla.org/tracker/joomla-cms/46433 by using the blue "Test this" button at the top left corner, selecting your test result and finally submit, so the test is properly counted. Thanks in advance. |
|
I have tested this item ✅ successfully on cb652ce This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46433. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46433. |
|
Thanks for the fix @TLWebdesign and to @LadySolveig & @lemuelvdm for testing at short notice! |
Pull Request for Issue # .
Summary of Changes
Fixed the default value for position and currency.
Testing Instructions
When no currency is set it should not display anything. Now it display a "2".
When no position is set it should default back to 0 (in front) which is the same as the default in the XML.
Actual result BEFORE applying this Pull Request
"2" was displayed when no currency was set.
Default position was set to "2" which would give the same behaviour as setting it to the back, altho this was technically not possible since the default position in the XML was already set to 0 and it is a list so no user input possible.
Expected result AFTER applying this Pull Request
No "2" visible when currency is empty. And default position is still in front of the text (0).
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