Changeset 7de66729d010e13cf97f71e7b47af2e54a3b9c4d in indico


Ignore:
Timestamp:
02/22/12 09:14:04 (3 months ago)
Author:
Matthew Pugh <matthew.alexander.pugh@…>
Children:
46fff4a8645e8ae77cba9ad498f680cb303a5b81
Parents:
b86ac25adc69c9559945ffce69dac047b7c0a728
git-author:
Matthew Pugh <matthew.alexander.pugh@…> (02/22/12 09:14:04)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (02/22/12 11:57:30)
Message:

[MIN] VSO skip time parsing if not available.

  • If no startDate parameter is present, returns nothing else parses.
  • Closes #992
Location:
indico/MaKaC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/plugins/Collaboration/indexes.py

    r3a3b05 r7de667  
    5959 
    6060        reverse = orderBy == "descending" 
    61  
    6261        try: 
    6362            index = self.getIndex(indexName) 
  • indico/MaKaC/webinterface/tpls/AdminCollaboration.tpl

    rcf14f3 r7de667  
    494494        time = booking.modificationDate.time.substring(0,5); 
    495495    } else if (viewBy === "startDate" || viewBy === "conferenceStartDate") { 
    496         time = Util.parseDateTime(booking.bookingParams.startDate, IndicoDateTimeFormats.Default).time.substring(0, 5); 
     496        time = (booking.bookingParams.startDate.length === 0) 
     497               ? '' : Util.parseDateTime(booking.bookingParams.startDate, 
     498                       IndicoDateTimeFormats.Default).time.substring(0, 5); 
    497499    } 
    498500 
Note: See TracChangeset for help on using the changeset viewer.