Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Project task progress adds "25"
#1
When I update a project task progress (pretty up-to-date install), the number "25" is added to the percentage, resulting in (for instance) "40%25".. No idea how this happens...
Reply
#2
Thanks for inform! I've reproduced the error and I've fixed it.

You can update your code and try again.

Fixed here: https://github.com/tsolucio/corebos/commit/630a798badfbb1f577b29dce8e51a4c7aada03d5
Reply
#3
No problem, thanks for fixing. Just a question: the 'escapeAll' and 'escapeURIComponent' functions, are they 'vtiger' functions?
Reply
#4
escapeAll is vtiger crm function which I have put on my to-do list to eliminate, it is a manual (and incorrect) way of doing the standard javascript escapeURIComponent() and encodeURI() functions, which is what should have been used from the start.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent


It won't be long before I eliminate that....
Joe
TSolucio
Reply
#5
Come to think of it, the two escapeURI functions were just handled in the javascript book I'm reading...
Reply
#6
turns out it was only being used in two other places. one is useless because it is the chat box which is all broken (and always has been) the other I have taken care of:

https://github.com/tsolucio/corebos/commit/939a611559664915518e14bdb3e8bc9b59e8c86f
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)