Changeset bcf67d6 for src/mvc/event.cpp


Ignore:
Timestamp:
01/28/10 22:55:25 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
8b0bf22
Parents:
83020cd
Message:

search fixed

  • only the dates (range) which contain at least one event are selectable
    • if there is only one event at a specified date - user can't switch to the next/prev date
  • if search gives no results - a message is displayed to inform user about it
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/event.cpp

    r83020cd rbcf67d6  
    194194QList<Event> Event::getSearchResultByDate(const QDate& date, int conferenceId, QString orderBy)
    195195{
    196 
    197196    QString strQuery = QString("SELECT %1 FROM EVENT INNER JOIN SEARCH_EVENT USING (xid_conference, id) ").arg(columnsForSelect());
    198197    strQuery += QString("WHERE xid_conference = :conf AND start >= :start AND start < :end ORDER BY %1").arg(orderBy);
    199     qDebug() << strQuery;
     198    //qDebug() << strQuery;
    200199    QList<Event> list;
    201200    QSqlQuery query;
Note: See TracChangeset for help on using the changeset viewer.