Ignore:
Timestamp:
10/22/18 12:16:12 (6 years ago)
Author:
bas
Message:

sara_nodes also displays NHC offline notes,

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/sara_nodes.py.in

    r367 r368  
    242242                add_dict['date'] = None
    243243
     244        elif len(note) == 1:
     245            ## There is a note but not set by admin
     246            add_dict['date'] = add_dict['date_add'] = add_dict['date_edit'] = add_dict['username'] = add_dict['ticket'] = ''
     247            add_dict['note'] = ",".join(note)
    244248        else:
    245249            ## If there is no note, just set the variables with a empty string
     
    308312                    w_ticket = 6
    309313                show_fields.append([w_ticket,'Ticket'])
     314        if w_date > 0 or w_note > 0:
    310315            show_fields.append([w_note,'Note'])
    311316
     
    327332            elif w_ticket > 0:
    328333                show_line_fields.append([w_ticket,''])
     334        if w_date > 0 or w_note > 0:
    329335            show_line_fields.append([w_note,line['note']])
    330336
Note: See TracChangeset for help on using the changeset viewer.