Changeset 373 in main


Ignore:
Timestamp:
10/05/11 07:26:43 (8 years ago)
Author:
pcosquer
Message:

fix #28

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/navigate.py

    r333 r373  
    299299                node.attr["tooltip"] = "/ajax/thumbnails/" + get_path(obj) 
    300300            elif type_ == PartController and not self.options["doc"]: 
    301                 s = "+" if obj.id not in self.options["doc_parts"] else "-" 
    302                 node.attr["tooltip"] = s + str(obj.id) 
     301                if obj.get_attached_documents(): 
     302                    s = "+" if obj.id not in self.options["doc_parts"] else "-" 
     303                    node.attr["tooltip"] = s + str(obj.id) 
    303304        else: 
    304305            node.attr["label"] = obj.username 
Note: See TracChangeset for help on using the changeset viewer.