CC-3949: On edit empty show, time_filled becomes null

- fixed
This commit is contained in:
James 2012-06-08 16:18:27 -04:00
parent e661f400a4
commit 0bae3f9038

View file

@ -161,7 +161,11 @@ class CcShowInstances extends BaseCcShowInstances {
*/
public function updateDbTimeFilled(PropelPDO $con)
{
$this->setDbTimeFilled($this->computeDbTimeFilled($con));
$timefilled = $this->computeDbTimeFilled($con);
if($timefilled == null){
$timefilled = "00:00:00";
}
$this->setDbTimeFilled($timefilled);
$this->save($con);
}