Ignore:
Timestamp:
12/29/14 23:14:42 (10 years ago)
Author:
Daniela Dorner
Message:
changed column names of the table Measurement for consistency when switching to real DB
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/schedule/save.php

    r18044 r18045  
    141141    die(mysql_error());
    142142
    143 $query = "SELECT * FROM Measurement";
     143$query = "SELECT * FROM MeasurementType";
    144144
    145145$sql = mysql_query($query);
     
    149149$measurements = array();
    150150while($row = mysql_fetch_assoc($sql))
    151     $measurements[$row['fMeasurementKey']] = $row;
     151    $measurements[$row['fMeasurementTypeKey']] = $row;
    152152
    153153// ----------------------------------------------------------------
     
    192192    {
    193193        if ($measurements[$m]['fIsUnlimited']==true)
    194             die("Unlimited task '".$measurements[$m]['fMeasurement']."' detected before end of observation\n[".$last."|".($id-1)."]");
     194            die("Unlimited task '".$measurements[$m]['fMeasurementTypeName']."' detected before end of observation\n[".$last."|".($id-1)."]");
    195195    }
    196196
     
    206206    // Check if task need source or must not have a source
    207207    if ($measurements[$m]['fNeedsSource']==true && $s==0)
    208         die("Task '".$measurements[$m]['fMeasurement']."' needs source.\n[".$t."|".$id."]");
     208        die("Task '".$measurements[$m]['fMeasurementTypeName']."' needs source.\n[".$t."|".$id."]");
    209209    if ($measurements[$m]['fNeedsSource']!=true && $s>0)
    210         die("Task '".$measurements[$m]['fMeasurement']."' must not have source.\n[".$t."|".$id."]");
     210        die("Task '".$measurements[$m]['fMeasurementTypeName']."' must not have source.\n[".$t."|".$id."]");
    211211
    212212    // Compile query
Note: See TracChangeset for help on using the changeset viewer.