Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
Description
When attempting to duplicate a CO the platform admin sees "An Internal Error Has Occurred" and this stack trace is thrown in the log:
Notice: Notice (8): Trying to get property 'name' of non-object in [/srv/comanage-registry/app/Model/Co.php, line 481]
|
Trace:
|
ErrorHandler::handleError() - CORE/Cake/Error/ErrorHandler.php, line 230
|
Co::duplicateObjects() - APP/Model/Co.php, line 481
|
Co::duplicate() - APP/Model/Co.php, line 346
|
CosController::duplicate() - APP/Controller/CosController.php, line 176
|
ReflectionMethod::invokeArgs() - [internal], line ??
|
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
|
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
|
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
|
[main] - APP/webroot/index.php, line 96
|
2021-10-19 15:45:14 Error: [Error] Call to a member function find() on null
|
Request URL: /registry/cos/duplicate/23
|
Stack Trace:
|
#0 /srv/comanage-registry/app/Model/Co.php(346): Co->duplicateObjects(NULL, 'co_id', '23', Array)
|
#1 /srv/comanage-registry/app/Controller/CosController.php(176): Co->duplicate('23')
|
#2 [internal function]: CosController->duplicate('23')
|
#3 /srv/comanage-registry/lib/Cake/Controller/Controller.php(499): ReflectionMethod->invokeArgs(Object(CosController), Array)
|
#4 /srv/comanage-registry/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
|
#5 /srv/comanage-registry/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(CosController), Object(CakeRequest))
|
#6 /srv/comanage-registry/app/webroot/index.php(96): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
|
#7 {main}
|
|
|