← Back to team overview

openerp-india team mailing list archive

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

 

For pretty obvious reasons, we're not going to patch the third-party
wiki library for that...

** Project changed: openerp-web => openobject-addons

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/927653

Title:
  wiki module error "wikitext.split is not a function"

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/927653/+subscriptions