Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-733

editing a block allocation recreates past block time entries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4
    • web gui (frontend)
    • 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')"; }

      Attachments

        Activity

          People

            Unassigned Unassigned
            jfthomps Josh Thompson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: