Blank categories and TypeError after modifying Sales Order DocType

I apologize in advance if this gets double-posted, but it didn't seem to get through the first time.

I'm trying to change one of the fields in the Sales Order DocType (using ERPNext 3.6.1) from a Link to one DocType to a Table of another. When I save it and try to test the changes by creating a new Sales Order, the categories are all blank and I get a TypeError in Chrome's JavaScript console: http://imgur.com/0xXHVv9

Any ideas on why this is occurring and how I can fix it? Thanks!



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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/d42979fa-be12-4e2a-a393-f0888cf3f2f1%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Check the client script of the sales order. It tries to add a custom search query on the field you have renamed.


On 03-Jul-2014, at 8:38 pm, Chris Horton <ch...@thedrainage.com> wrote:

I apologize in advance if this gets double-posted, but it didn't seem to get through the first time.

I'm trying to change one of the fields in the Sales Order DocType (using ERPNext 3.6.1) from a Link to one DocType to a Table of another. When I save it and try to test the changes by creating a new Sales Order, the categories are all blank and I get a TypeError in Chrome's JavaScript console: http://imgur.com/0xXHVv9

Any ideas on why this is occurring and how I can fix it? Thanks!



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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/d42979fa-be12-4e2a-a393-f0888cf3f2f1%40googlegroups.com.

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



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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/913F0087-58E1-4AC6-9C3C-E55B429325EE%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.
Thanks for the tip! I commented the relevant code out and it works now.

On Friday, July 4, 2014 11:50:28 PM UTC-4, rushabh wrote:
Check the client script of the sales order. It tries to add a custom search query on the field you have renamed.


On 03-Jul-2014, at 8:38 pm, Chris Horton <ch...@thedrainage.com> wrote:

I apologize in advance if this gets double-posted, but it didn't seem to get through the first time.

I'm trying to change one of the fields in the Sales Order DocType (using ERPNext 3.6.1) from a Link to one DocType to a Table of another. When I save it and try to test the changes by creating a new Sales Order, the categories are all blank and I get a TypeError in Chrome's JavaScript console: http://imgur.com/0xXHVv9

Any ideas on why this is occurring and how I can fix it? Thanks!



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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/d42979fa-be12-4e2a-a393-f0888cf3f2f1%40googlegroups.com.

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



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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/7e3c70df-eba3-4d34-a041-974268c2861d%40googlegroups.com.

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