Project Website | Online Demo | Forum |
It is currently Tue Jun 27, 2017 5:32 am

All times are UTC + 1 hour [ DST ]





Post new topic Reply to topic  [ 1 post ] 
  Print view Previous topic | Next topic 
Author Message
 Post subject: bug: javascript error on message with linebreak
PostPosted: Sat Aug 21, 2010 10:09 pm 
Offline

Joined: Sat Aug 21, 2010 9:52 pm
Posts: 1
Hi there,

I'm totally new to badger finance and maybe it's already fixed in badger 2.0, but since I don't really know I wanted to report this bug anyhow.

I configured badger to run in german language mode.
When going to "Konten" -> "Transaktionskategorien" ("Accounts" -> "Transaction categories"), javascript reports an unterminated string literal "deleteMsg". I found that this occurs because this string (stored in table "i18n", page_id="accountCategory", id="deleteMsg") has a linebreak in it and javascript itself doesn't allow string literals to spread over several lines.

my solution was to remove the linebreak from the string in database but propably it would make more sense to replace all linebreaks by "\n" or "<br/>" in php before writing it as string literal to a javascript.

Just my 50 cents :)

Apart from that... great piece of software!

Cheers,
Kc


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron




Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style supported by CodeMiles Team.