Changeset 18045 for trunk/FACT++/www/schedule/save.php
- Timestamp:
- 12/29/14 23:14:42 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/schedule/save.php
r18044 r18045 141 141 die(mysql_error()); 142 142 143 $query = "SELECT * FROM Measurement ";143 $query = "SELECT * FROM MeasurementType"; 144 144 145 145 $sql = mysql_query($query); … … 149 149 $measurements = array(); 150 150 while($row = mysql_fetch_assoc($sql)) 151 $measurements[$row['fMeasurement Key']] = $row;151 $measurements[$row['fMeasurementTypeKey']] = $row; 152 152 153 153 // ---------------------------------------------------------------- … … 192 192 { 193 193 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)."]"); 195 195 } 196 196 … … 206 206 // Check if task need source or must not have a source 207 207 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."]"); 209 209 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."]"); 211 211 212 212 // Compile query
Note:
See TracChangeset
for help on using the changeset viewer.