Problem with redmine 2.4.7 and json
Added by antoine fjdjfsdk over 9 years ago
Hello everybody,
I have a problem with redmine and RedminePM (Android App)
I receive html (<p>) balise and I don't want
eg. in json
{"issue":{"id":136,"project":{"id":25,"name":"Aw => \u00e0 faire"},"tracker":{"id":1,"name":"Anomalie"},"status":{"id":1,"name":"Nouveau"},"priority":{"id":2,"name":"Normal"},"author":{"id":3,"name":"antoine ********"},"category":{"id":13,"name":"Infra"},"subject":"voir yum-cron et probl\u00e8me de proxy","description":"<p>voir yum-cron et problème de proxy</p>\r\n\r\n<p>Ajouter le proxy dans yum.conf</p>\r\n","start_date":"2015-04-13","done_ratio":100,"spent_hours":0.0,"custom_fields":[{"id":1,"name":"Universit\u00e9","value":""}],"created_on":"2015-04-13T06:29:32Z","updated_on":"2015-04-16T08:02:06Z","attachments":[],"journals":[{"id":139,"user":{"id":3,"name":"antoine ********"},"notes":"","created_on":"2015-04-13T07:27:38Z","details":[{"property":"attr","name":"done_ratio","old_value":"0","new_value":"90"}]},{"id":146,"user":{"id":3,"name":"antoine ******"},"notes":"","created_on":"2015-04-16T08:02:06Z","details":[{"property":"attr","name":"done_ratio","old_value":"90","new_value":"100"}]}]}}
I use also ckeditor.
I try to edit lib/redmine/views/builders/json.rb but nothing
self.json = json.to_s.gsub('/(<[^>]*>)|\n|\t/s', '')
One idea ?
PS: sorry for my english
Replies (1)
RE: Problem with redmine 2.4.7 and json - Added by Toshi MARUYAMA over 9 years ago
Your attachments are broken.