Changeset 4463

Show
Ignore:
Timestamp:
Wed Feb 22 13:02:24 2006
Author:
mugur
Message:

fixed ticket:1694 - Invalid error message displayed by the template engine when no issue was published

Files:

Legend:

Unmodified
Added
Removed
Modified
  • branches/CAMPSITE_2_4_BRANCH/campsite/implementation/parser/parser/curltemplatepath.cpp

    r4028 r4463  
    112 112             qRow = QueryFetchRow(m_pDBConn, coQuery.c_str(), coRes);  
    113 113             if (qRow != NULL)  
      114             {  
      115                 if (qRow[0] == NULL || atol(qRow[0]) <= 0)  
      116                 {  
      117                     throw RunException("There are no published issues.");  
      118                 }  
    114 119                 setValue(P_NRISSUE, qRow[0]);  
      120             }  
    115 121         }  
    116 122         m_coTemplate = CPublication::getIssueTemplate(getIntValue(P_IDLANG), getIntValue(P_IDPUBL),  
  • branches/CAMPSITE_2_4_BRANCH/campsite/implementation/parser/parser/curlshortnames.cpp

    r4028 r4463  
    128 128         if (qRow != NULL)  
    129 129         {  
      130             if (qRow[0] == NULL || atol(qRow[0]) <= 0)  
      131             {  
      132                 throw RunException("There are no published issues.");  
      133             }  
    130 134             nIssue = Integer(qRow[0]);  
    131 135             setIssue(nIssue);