Quantcast
Channel: Zammad - Community - Latest posts
Viewing all articles
Browse latest Browse all 6736

Problem with using global search

$
0
0

I don’t know what the models are on your side but these lines look like a problem:

    if data.model_id
      data.model = App.Model.findNative(data.model_id)
      console.log data.model
    if data.seller_id
      data.seller = App.Model.findNative(data.seller_id)
      console.log data.seller

It must be like App.Seller.find. Also App.Model is a blocked namespace, I think. You need to rename it to App.AssetModel or something so you don’t issues.

Also if you want your data ready for your fillup function you need to serve them in your assets. Many models have dedicated asset files on the backend side see some examples here:

You will need something similar for your Asset model so that you can auto load the seller and the “model” with it.


Viewing all articles
Browse latest Browse all 6736

Trending Articles