Charts with categories that contain a plus symbol do not display

Issue #535 resolved
David Platten
created an issue

Part of the URLToArray JavaScript function isn't doing what it should:

request[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]).replace(/\+/g, ' ');

needs to be replaced with

pair[1] = pair[1].replace(/\+/g, ' ');
request[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);

Comments (11)

  1. David Platten reporter

    Amended views.py to include a KeyError for when the form data is empty - occurs when a user first goes to the CT or radiographic pages. Doesn't affect mammo or fluoro pages as they do not have a filter for acquisition protocol. References issue #535

    → <<cset 66cf6cec28c8>>

  2. David Platten reporter

    Merged in issue535chartsFailWithPlus (pull request #100)

    Amended views.py to include a KeyError for when the form data is empty - occurs when a user first goes to the CT or radiographic pages. Doesn't affect mammo or fluoro pages as they do not have a filter for acquisition protocol. References issue #535

    → <<cset e5ba98904718>>

  3. Log in to comment