Changeset 6090


Ignore:
Timestamp:
05/03/12 16:20:21 (12 years ago)
Author:
acoutinho
Message:

Ticket #2687 - Inconsistencias com a edicao de eventos com anexo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/js/calendar.codecs.js

    r6066 r6090  
    627627                attachments: $.map(objEvent.attachments || [], function( attachment, i ){ 
    628628                    var attach = DataLayer.get('schedulableToAttachment', attachment, false); 
     629                    //TODO - Verificar na API retorno de id sobre os conceitos em que são utilizados tabelas de ligação 
     630                    if(!attach.name) return(null);  
     631                     
    629632                    var ext = attach.name.split('.'); 
    630633                    attach.name = attach.name.length < 10 ?  attach.name : ( ext.length == 1 ? attach.name.substr(0, 10) : (attach.name.substr(0, 6) + '.' +  ext[ext.length -1])); 
Note: See TracChangeset for help on using the changeset viewer.