Project

General

Profile

Bug #2093 ยป 2093.patch

krileon, 25 November 2010 18:02

View differences:

components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php
if ( $minVal && ( $minVal !== '0000-00-00' ) ) {
$query[] = $this->_dateToSql( $field, $col, $minVal, '>=', $searchMode );
// Finally store the selected drop-down values so they can be pre-selected on display:
$searchVals->$minNam = $minValIn;
$searchVals->$minNam = cbFormatDate( $minValIn );
if ( ( ! $maxVal ) && $maxValIn ) {
$searchVals->$maxNam = $maxValIn;
$searchVals->$maxNam = cbFormatDate( $maxValIn );
}
}
......
}
// Finally store the selected drop-down values so they can be pre-selected on display:
if ( ( ! $minVal ) && $minValIn ) {
$searchVals->$minNam = $minValIn;
$searchVals->$minNam = cbFormatDate( $minValIn );
}
$searchVals->$maxNam = $maxValIn;
$searchVals->$maxNam = cbFormatDate( $maxValIn );
}
}
}
    (1-1/1)