View Issue Details

IDProjectCategoryView StatusLast Update
1457RackTablesdefaultpublic2015-08-09 22:06
Reporterracktabler Assigned Toadoom42  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.20.10 
Target Version0.20.11Fixed in Version0.20.11 
Summary1457: PDOException on Rack Row Updates
DescriptionTry to change Location of Rack Row ( Rackspace -> Manage Rows) gives me

Pdo exception: PDOException
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'has_problems' cannot be null (23000)
at file racktables/wwwroot/inc/database.php, line 4003
racktables/wwwroot/inc/database.php:4003 execute(Array
(
    [0] => RoWB
    [1] =>
    [2] =>
    [3] =>
    [4] =>
    [5] => 5
)
)
racktables/wwwroot/inc/database.php:1011 usePreparedUpdateBlade('Object', Array
(
    [name] => RoWB
    [label] =>
    [has_problems] =>
    [asset_no] =>
    [comment] =>
)
, Array
(
    [id] => 5
)
)
racktables/wwwroot/inc/ophandlers.php:2384 commitUpdateObject('5', 'RoWB', NULL, NULL, NULL, NULL)
updateRow()
racktables/wwwroot/index.php:230 call_user_func('updateRow')

Error info:
Array
(
    [0] => 23000
    [1] => 1048
    [2] => Column 'has_problems' cannot be null
)

Parameters:
GETmodule redirect
page rackspace
tab editrows
op updateRow
Steps To ReproduceChange Location of Rack Row ( Rackspace -> Manage Rows)
Additional InformationCould 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);




TagsNo tags attached.

Relationships

has duplicate 1477 closed Pdo exception: PDOException when changing row name 

Activities

tomium

tomium

2015-04-29 13:57

reporter   ~0002815

Look at this please: https://bugs.racktables.org/view.php?id=1417
Could this be the same problem? (strict SQL mode)

Issue History

Date Modified Username Field Change
2015-04-10 13:56 racktabler New Issue
2015-04-29 13:57 tomium Note Added: 0002815
2015-06-11 04:54 adoom42 Relationship added has duplicate 1477
2015-06-11 04:56 adoom42 Assigned To => adoom42
2015-06-11 04:56 adoom42 Status new => assigned
2015-08-09 22:06 adoom42 Status assigned => closed
2015-08-09 22:06 adoom42 Resolution open => fixed
2015-08-09 22:06 adoom42 Fixed in Version => 0.20.11
2015-08-09 22:06 adoom42 Target Version => 0.20.11