CAPTURE LINK’ bug
CAPTURE LINK bug with Quick Search
(SC updated to las version).
Button ‘Select’ registration fails if previously it has been used ‘Quick Search’ to display any records in the grid: CLICK ON BUTTON SELECT returns no records.
Comment:
Button ‘Select’ registration don’t fails if button ‘Search’ has been used to display any records in the grid.
Result:
-
Capture link is a common used tool.
-
‘Quick Search’ button is very usefull
-
‘Quick Search’ button produces a failure on capture link.
-
Consequences of the bug
suppression of all capture link
or
suppression of all ‘Quick Search’ boxes
in new or updated applications to avoid the bug.
-
Example in attached files: sequence of bug images is bug1 -> bug2 -> bug3
bug1 image: New record -> Capture link -> Quick search…
bug2 image: Result of Quick search -> Select buttton pressed to select a record…
bug3 image: BUG here: And CLICK ON BUTTON SELECT returns no record.
-
SAMPLE MySQL DATABASE to test:
CREATE TABLE IF NOT EXISTS events
(
id
bigint(20) NOT NULL AUTO_INCREMENT,
date
date NOT NULL,
contact
varchar(6) NOT NULL,
PRIMARY KEY (id
),
KEY contact
(contact
)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
INSERT INTO events
(id
, date
, contact
) VALUES
(1, ‘2014-03-04’, ‘n2’),
(2, ‘2014-03-05’, ‘n1’);
CREATE TABLE IF NOT EXISTS people
(
id
varchar(6) NOT NULL,
name
varchar(24) NOT NULL,
PRIMARY KEY (id
),
KEY name
(name
)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO people
(id
, name
) VALUES
(‘n1’, ‘Name One’),
(‘n2’, ‘Name Two’);
ALTER TABLE events
ADD CONSTRAINT events_ibfk_1
FOREIGN KEY (contact
) REFERENCES people
(id
);