View Issue Details

IDProjectCategoryView StatusLast Update
07719Development Otherpublic2013-03-31 06:16
Reporterluayessa Assigned To 
PrioritynormalSeverityminor 
Status newResolutionopen 
Product Version2.00 
Summary07719: Redundant Code in the expire function
DescriptionCheck the expire function in the following file:
/application/controllers/admin/surveyadmin.php

Check these lines, we call "_expireSurvey" function, However the next two lines do the same thing as the "_expireSurvey" function does.

$this->_expireSurvey($iSurveyID);
$dExpirationdate = dateShift(date("Y-m-d H:i:s"), "Y-m-d H:i:s", Yii::app()->getConfig('timeadjust'));

$dExpirationdate = dateShift($dExpirationdate, "Y-m-d H:i:s", '-1 day');
Survey::model()->updateByPk($iSurveyID,array('expires' => $dExpirationdate));
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2013-03-31 06:16 luayessa New Issue