History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: DOTCMS-1571
Type: Bug Bug
Status: Released Released
Resolution: Released
Priority: Critical Critical
Assignee: Testing User
Reporter: Maria Bouza
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
dotCMS

Error in $glossary.get using variables with Keys with spaces on them

Created: June 11, 2008 5:00 PM   Updated: July 23, 2009 11:53 AM  Due: 6/18/08
Component/s: a. Unknown
Affects Version/s: 1.6.0.7
Fix Version/s: 1.6.5

Time Tracking:
Original Estimate: 2 hours
Original Estimate - 2 hours
Remaining Estimate: 30 minutes
Time Spent - 1 hour, 30 minutes Remaining Estimate - 30 minutes
Time Spent: 1 hour, 30 minutes
Time Spent - 1 hour, 30 minutes Remaining Estimate - 30 minutes

Environment: demo.dotcms.org 1.6.0.7


 Description  « Hide
If you have a key in the dictionary like this:

dotcms.administrative.fee=$25

And you use the Dictionary in dotCMS to display the value you get this code on the page:
 $glossary.get('dotcms.administrative.fee')

which works great.

If you use instead of dotcms.administrative.fee as the key and you put: Dotcms Administrative Fee.

Then on the cms properties file it's saved like this:

Dotcms\ Administrative\ Fee=$25

If you use the dictionary then to display on the content on the page the code we generate is:
$glossary.get('Dotcms Administrative Fee')

which doesn't display anything.

If we do this instead: $glossary.get('Dotcms\ Administrative\ Fee')
it works.

So we need to modify the AJAX Dictionary Terms on the Content page to add the "\" on the names or do it on the macro before looking in the property file.


 All   Comments   Work Log   Change History   Subversion Commits   FishEye      Sort Order: Ascending order - Click to sort in descending order
Jason Tesser - August 11, 2008 11:30 AM
Code has all been merged