View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
1477 | RackTables | default | public | 2015-06-01 16:16 | 2015-06-11 04:55 |
Reporter | cabbiebatman | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Platform | Linux | OS | CentOS | OS Version | 7 |
Product Version | 0.20.10 | ||||
Summary | 1477: Pdo exception: PDOException when changing row name | ||||
Description | When changing row name SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'has_problems' cannot be null (23000) at file /var/www/html/racktables/inc/database.php, line 4003 /var/www/html/racktables/inc/database.php:4003 execute(Array ( [0] => LHY Row E [1] => [2] => [3] => [4] => [5] => 13 ) ) /var/www/html/racktables/inc/database.php:1011 usePreparedUpdateBlade('Object', Array ( [name] => Row E [label] => [has_problems] => [asset_no] => [comment] => ) , Array ( [id] => 13 ) ) /var/www/html/racktables/inc/ophandlers.php:2400 commitUpdateObject('13', 'Row E', NULL, NULL, NULL, NULL) updateRow() /var/www/html/racktables/index.php:230 call_user_func('updateRow') Error info: Array ( [0] => 23000 [1] => 1048 [2] => Column 'has_problems' cannot be null ) Parameters: GET module redirect page row tab edit op updateRow POST row_id 13 location_id 7 name Row E num_attrs 0 submit_x 22 submit_y 20 | ||||
Steps To Reproduce | Rename any row | ||||
Tags | No tags attached. | ||||
Found the same issue in ID 0001457 and solved with the information in the notes Could not reproduce on Live Demo. But on two newly installed systems. Fixed by changing the following in ophandlers.php in function updateRow() commitUpdateObject ($_REQUEST['row_id'], $_REQUEST['name'], NULL, NULL, NULL, NULL); to commitUpdateObject ($_REQUEST['row_id'], $_REQUEST['name'], NULL, 'no', NULL, NULL); |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2015-06-01 16:16 | cabbiebatman | New Issue | |
2015-06-01 16:23 | cabbiebatman | Note Added: 0002841 | |
2015-06-11 04:54 | adoom42 | Relationship added | duplicate of 1457 |
2015-06-11 04:55 | adoom42 | Status | new => closed |
2015-06-11 04:55 | adoom42 | Resolution | open => duplicate |