-
Problem report
-
Resolution: Unresolved
-
Minor
-
None
-
4.0.28, 5.0.8, 5.2.4, 5.4.0alpha2
- Create action.
- Perform action.update in API similar to this:
API::Action()->update([ [ 'actionid' => '51', 'operations' => [ [ 'operationid' => 212, 'operationtype' => 0, 'esc_period' => '0s', 'esc_step_from' => 1, 'esc_step_to' => 2, 'evaltype' => 0, 'opmessage_grp' => [ [ 'usrgrpid' => '7' ] ] ] ] ] ]);
Which means excluding "actionid" from "operations" object.
This results in errors:
Undefined index: actionid [... -> CApiWrapper->__call() -> CFrontendApiWrapper->callMethod() -> CApiWrapper->callMethod() -> CFrontendApiWrapper->callClientMethod() -> CLocalApiClient->callMethod() -> CAction->update() -> CAction->updateOperations() -> CConfigFile->{closure}() in include\classes\api\services\CAction.php:1219]
Undefined index: [... z-> CApiWrapper->__call() z-> CFrontendApiWrapper->callMethod() z-> CApiWrapper->callMethod() z-> CFrontendApiWrapper->callClientMethod() z-> CLocalApiClient->callMethod() z-> CAction->update() z-> CAction->updateOperations() z-> CConfigFile->{closure}() in include\classes\api\services\CAction.php:1219]
Maybe it's time to remove "actionid" from "operations" object since it already exists in "action" object.