MantisBT - v1.1 Release (Closed)
View Issue Details
0000145v1.1 Release (Closed)[All Projects] Generalpublic2009-04-30 05:332009-09-09 22:37
Reportercaseydk 
Assigned Tocaseydk 
PriorityhighSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version1.1 
Summary0000145: Id generation for Custom Fields
DescriptionIn /classes/CustomFields.class.php around lines 76-80, the Custom Fields class itself calculates the next available primary key for the table using a "max(value_id)" structure. While this should always work, it's kind of silly to do... the underlying value_id field is an auto_increment so the database should handle this.
Additional InformationIf this was consistent behavior across all classes, I wouldn't note this as a problem but as is, this method of id calculation is only used in this single class.
TagsNo tags attached.
Attached Files

Notes
(0000301)
caseydk   
2009-06-13 20:08   
Resolved in r440;

(0000430)
caseydk   
2009-09-09 22:37   
Closed for release.

Issue History
2009-04-30 05:33caseydkNew Issue
2009-06-07 21:07caseydkProjectPending Requests => v1.1 Release (Closed)
2009-06-11 06:34caseydkStatusnew => assigned
2009-06-11 06:34caseydkAssigned To => caseydk
2009-06-13 20:08caseydkStatusassigned => resolved
2009-06-13 20:08caseydkResolutionopen => fixed
2009-06-13 20:08caseydkNote Added: 0000301
2009-06-13 20:08caseydkNote Edited: 0000301
2009-09-09 22:37caseydkStatusresolved => closed
2009-09-09 22:37caseydkNote Added: 0000430
2009-09-09 22:37caseydkFixed in Version => 1.1