Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Implementation/API/amc_api_handler_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,10 +478,16 @@ void CAPIHandler_UI::handleEventRequest(CJSONWriter& writer, const uint8_t* pBod
if (apiRequest.hasValue(AMC_API_KEY_UI_FORMVALUEJSON)) {
sFormValueJSON = apiRequest.getJSONObjectString(AMC_API_KEY_UI_FORMVALUEJSON, LIBMC_ERROR_INVALIDFORMVALUES);
}

std::string sEventParameterJSON;
if (apiRequest.hasValue(AMC_API_KEY_STATUSPARAMETERGROUP_PARAMETERS))
{
sEventParameterJSON = apiRequest.getJSONObjectString(AMC_API_KEY_STATUSPARAMETERGROUP_PARAMETERS, LIBMC_ERROR_INVALIDFORMVALUES);
}

auto pUIHandler = m_pSystemState->uiHandler();

auto pEventResult = pUIHandler->handleEvent(sEventName, sSenderUUID, sFormValueJSON, "", pAuth);
auto pEventResult = pUIHandler->handleEvent(sEventName, sSenderUUID, sFormValueJSON, sEventParameterJSON, pAuth);

CJSONWriterArray contentUpdateNode(writer);

Expand Down