BADGER finance

bug: javascript error on message with linebreak
Page 1 of 1

Author:  KidCrazy [ Sat Aug 21, 2010 10:09 pm ]
Post subject:  bug: javascript error on message with linebreak

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!


Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group