← Back to team overview

openerp-india team mailing list archive

[Bug 927653] [NEW] wiki module error "wikitext.split is not a function"

 

You have been subscribed to a public bug:

When passing from FORM to PAGE view sometimes we get

"wikitext.split is not a function" on """  var lines =
wikitext.split(/\r?\n/); """  in wiki/static/src/lib/wiky/wiky.js.

and you get a blank screen instead of the content of the page.

Here:
[...]
wiky.process = function(wikitext) {
        var lines = wikitext.split(/\r?\n/);
[...]

wikitext could be "false" so we can easily fix this by adding one line:

[...]
wiky.process = function(wikitext) {
       if(!wikitext){ return "" }
        var lines = wikitext.split(/\r?\n/);
[...]

Cheers

** Affects: openobject-addons
     Importance: Low
         Status: Confirmed


** Tags: web wiki
-- 
wiki module error "wikitext.split is not a function"
https://bugs.launchpad.net/bugs/927653
You received this bug notification because you are a member of OpenERP Indian Team, which is subscribed to OpenERP Addons.