ERPNEXT issue, unable to upload image using the ACE EDITOR

78 views
Skip to first unread message

Syed Qadeer

unread,
Mar 26, 2014, 8:21:48 AM3/26/14
to erpnext-dev...@googlegroups.com
hello all,

i am unable to upload the image using the ACE EDITOR.

the file is getting uploaded successfully but then i am getting an error at the "TypeError: this.get_attachments(...) is undefined"

how can i fix this ??

thanks.

Syed Qadeer

unread,
Mar 26, 2014, 8:22:18 AM3/26/14
to erpnext-dev...@googlegroups.com
i am currently using an older version of ERPNEXT which is .. ERPNEXT - 1310 ( branch )

rushabh

unread,
Mar 27, 2014, 1:20:40 AM3/27/14
to erpnext-dev...@googlegroups.com
We have deprecated the Ace Editor in the newer versions. It is too heavy and slows down the browser.

best,
Rushabh

Syed Qadeer

unread,
Mar 27, 2014, 1:30:41 AM3/27/14
to erpnext-dev...@googlegroups.com
Yes,i have seen that in the newer version ,since we are still using the older version , could you please guide on how to fix that error ??

Thanks

Syed.

Anand Doshi

unread,
Mar 27, 2014, 1:36:10 AM3/27/14
to ERPNext Developer's Forum
Hi Syed,

Can you send a link to the github code with that specific line number, so that we can see it? Without it, we wouldn't be able to help.

Thanks,
Anand.


--
Note:
 
If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/e98ed9ee-79d2-4709-b2c4-48ced52eac4a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Syed Qadeer

unread,
Mar 27, 2014, 2:06:17 AM3/27/14
to erpnext-dev...@googlegroups.com






and the line number of the github is : https://github.com/webnotes/wnframework/blob/1310/public/js/wn/form/attachments.js#L150

it seems that :
get_attachments: function() {
return this.frm.get_docinfo().attachments;
},

this.frm.get_docinfo().attachments; is returning empty or null or undefined.

please look into this.

Thanks.





Reply all
Reply to author
Forward
0 new messages