Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
When editing a block allocation that specifies a list of dates/times, past blockTimes entries are created. createListBlockData in blockallocations.php needs to be modified. Change
$btvals[] = "($blockid, "
. "'$sdatedt', "
. "'$edatedt')";
to
if($method != 'edit' || $edatets >= time())
{ $btvals[] = "($blockid, " . "'$sdatedt', " . "'$edatedt')"; }