Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003984 [JEDI VCL] 00 JVCL Components minor always 2006-11-05 23:03 2007-01-04 10:59
Reporter EinWill View Status public  
Assigned To outchy
Priority normal Resolution fixed  
Status resolved   Product Version 3.20
Summary 0003984: TJvDbSpinEdit don't allow to enter empty value (empty string)
Description Problem: TJvDbSpinEdit don't allow to enter empty value (empty string) into
         database, even if property AllowNull = true. Instead, value '0'
         is entered.

Solution: There are many ways to fix it. For example, lines 273-274 (jvdbspinedit.pas) says:
-------------------------------------------------------------
  FIsNull := (Text = '') and (NewValue = 0.0);
  inherited SetValue(NewValue);
-------------------------------------------------------------
It can be replaced with:
-------------------------------------------------------------
  FIsNull := (Text = '') and (NewValue = 0.0);
  if not (FIsNull and FAllowNull) then
    inherited SetValue(NewValue);
-------------------------------------------------------------

Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0010540)
outchy (administrator)
2007-01-04 10:58

Fixed in revision 11133.

- Issue History
Date Modified Username Field Change
2006-11-05 23:03 EinWill New Issue
2007-01-04 10:58 outchy Status new => resolved
2007-01-04 10:58 outchy Fixed in Version => Daily / SVN
2007-01-04 10:58 outchy Resolution open => fixed
2007-01-04 10:58 outchy Assigned To => outchy
2007-01-04 10:58 outchy Note Added: 0010540


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker