Changeset 4646


Ignore:
Timestamp:
07/01/11 10:20:38 (10 years ago)
Author:
brunocosta
Message:

Ticket #2052 - adicionado try...catch no UPDATE da função set_messages_flag.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/expressoMail1_2/js/local_messages.js

    r4605 r4646  
    718718        var smail=connector.serialize(mail); 
    719719        smail =smail.replace(/([^'])'([^'])('?)/g,"$1''$2$3$3"); 
    720         this.dbGears.execute("update mail set mail='"+smail+"',header='"+connector.serialize(header)+ 
    721                                                                 "',unseen="+unseen+",flagged="+flagged+",answered="+answered+ 
    722                                                                 " where rowid="+msgs_to_set[i]); 
     720        try{ 
     721            this.dbGears.execute("update mail set mail='"+smail+"',header='"+connector.serialize(header)+ 
     722                "',unseen="+unseen+",flagged="+flagged+",answered="+answered+ 
     723                " where rowid="+msgs_to_set[i]); 
     724        }catch(e){ 
     725            this.dbGears.execute("update mail set header='"+connector.serialize(header)+ 
     726                "',unseen="+unseen+",flagged="+flagged+",answered="+answered+ 
     727                " where rowid="+msgs_to_set[i]); 
     728        } 
    723729    } 
    724730    if(Element('chk_box_select_all_messages')) 
Note: See TracChangeset for help on using the changeset viewer.