AshishJoshi-asj / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Edit record displays 'Record Not Found' #185

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setting Edit mode during grid configuration
2. Click on 'edit' icon

What is the expected output? What do you see instead?
Expected : access to edit page if record exists
Instead : display the grid again, with message ''Record Not Found''

What version of the product are you using? On what operating system?
v6.alpha, under Linux Fedora

Please provide any additional information below.
Looking in Bvb_Grid_Deploy_Table, in method _processForm() particulary at
line 317, we can see this condition (where $r is a SQL query result) :

if (count($r) == 1) {
// display 'Record Not Found'
}

When we want to edit a SQL entry we expect to have access to only one
result, not more. With this PHP code, error is displayed when we get only
one result. Not logical, would it not be  : if (0 === count($r)) { ?

Original issue reported on code.google.com by tribal...@gmail.com on 23 Feb 2010 at 1:57

GoogleCodeExporter commented 9 years ago
Fixed.

Best Regards,
Bento Vilas Boas

Original comment by pao.fre...@gmail.com on 23 Feb 2010 at 4:30

GoogleCodeExporter commented 9 years ago

Original comment by bento.vi...@gmail.com on 3 Mar 2010 at 4:56