View Issue Details

IDProjectCategoryView StatusLast Update
273RackTablesdefaultpublic2010-11-29 13:25
Reporteruser105Assigned Touser145 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version0.17.11Fixed in Version0.17.11 
Summary273: updateObject() saves DB records, where it shouldn't
Description$ophandler['object']['edit']['update'] = 'updateObject';

This bug is seen for any object, which features dictionary-referenced attributes. When some of them are left unset ("-- NOT SET --") and "save" is pressed, there are records generated for all of the SELECTs. For example, having "HW type" set to "Catalyst 4900M" and "SW type" unset, the contents of DB would be:

+-----------+---------+--------------+------------+-------------+
| object_id | attr_id | string_value | uint_value | float_value |
+-----------+---------+--------------+------------+-------------+
| 1 | 2 | NULL | 1018 | NULL |
| 1 | 4 | NULL | 0 | NULL |
+-----------+---------+--------------+------------+-------------+

These ghost records also count in "Total stickers attached" report.
TagsNo tags attached.

Activities

user145

2010-05-12 14:11

  ~0000074

resolved in 3578

user145

2010-05-12 14:12

  ~0000075

If the field submitted is a dict field and the value is 0 then we treat it as a removal of the attribute.

Issue History

Date Modified Username Field Change
2009-12-24 17:56 user105 New Issue
2009-12-26 17:10 user105 Status new => closed
2010-01-09 22:21 infrastation Severity feature => minor
2010-01-09 22:21 infrastation Status closed => new
2010-01-09 22:21 infrastation Category => Database - core
2010-01-09 22:21 infrastation Description Updated
2010-05-12 12:42 user145 Status new => assigned
2010-05-12 12:42 user145 Assigned To => user145
2010-05-12 13:59 user145 Reproducibility N/A => always
2010-05-12 13:59 user145 Status assigned => confirmed
2010-05-12 14:11 user145 Note Added: 0000074
2010-05-12 14:12 user145 Note Added: 0000075
2010-05-12 14:12 user145 Status confirmed => resolved
2010-05-12 14:12 user145 Fixed in Version => 0.17.11
2010-05-12 14:12 user145 Resolution open => fixed
2010-05-12 16:25 infrastation Target Version => 0.17.11
2010-11-29 13:25 infrastation Status resolved => closed