My favorites | Sign in
Project Home Wiki Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 487: 'filter_racy' set to wrong values when using a localization
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Mar 2012


Sign in to add a comment
 
Reported by and...@sciamanna.eu, Mar 14, 2012
== PLEASE REPORT SUSPECTED BUGS ONLY. NO SUPPORT REQUESTS HERE, PLEASE ==

What steps will reproduce the problem?
1. Use a localized version of Wordpress (e.g.: Italian)
2. Install tubepress plugin
3. Go to the setting page
4. (optional) Change some settings
5. Save

What is the expected output?
Settings to be saved without errors or warnings

What do you see instead?
An error message saying that the field must be set to "none", "strict" or "moderate", but has been set to "nessuno" (translation of "none")

Checking the html, the issue is that translated strings are put in the option value, instead of putting them between the option tags.

URL of a page that demonstrates the issue:
n/a

Which version of TubePress are you using?
2.2

Mar 14, 2012
#1 eho...@gmail.com
Thanks for the report. Are you able to test this on the latest version of TubePress (2.4.1)? I'll try to reproduce in the meantime.
Labels: Type-Defect
Mar 15, 2012
#2 and...@sciamanna.eu
My apologies: the issue is happening with TubePress 2.4.1 (I've typed the wrong version).
Mar 15, 2012
#3 and...@sciamanna.eu
Here is the html snippet that is created by TubePress: as you can see, value and text in the options list are swapped.
TubePRessIssue.PNG
5.4 KB   View   Download
Mar 15, 2012
#4 eho...@gmail.com
 Issue 488  has been merged into this issue.
Mar 15, 2012
#5 eho...@gmail.com
OK, thanks! I'll investigate today and have a fix out ASAP..
Status: Accepted
Labels: Priority-High
Mar 18, 2012
#6 eho...@gmail.com
Thank you again for reporting this bug.

Until the next version of TubePress is released, the fix for this is quite simple. You can either make the simple change found at [1], or you can replace your copy of sys/classes/org/tubepress/impl/options/ui/fields/DropdownField.class.php with this one [2]

[1] https://github.com/ehough/tubepress/commit/97408f678c6624d71e9be90aab40b5f44ef416b2#diff-0
[2] https://raw.github.com/ehough/tubepress/97408f678c6624d71e9be90aab40b5f44ef416b2/sys/classes/org/tubepress/impl/options/ui/fields/DropdownField.class.php
Status: Fixed
Apr 16, 2012
#7 gorg...@gmail.com
Thanks for this, and for those who get this bug:

After implement the fix, change one or more settings and save. Then check again.
Sign in to add a comment

Powered by Google Project Hosting