remove problematic debug echos that screw up login (output before header call)

This commit is contained in:
Michael Becker 2025-07-28 22:57:45 -04:00
parent 9d575a4efc
commit 4da713ae56
2 changed files with 9 additions and 7 deletions

View File

@ -361,8 +361,6 @@
public function getResponse($element, InstanceReference|null $relatedInstance = null) // , array|null $workData = null)
{
$url = "/tenants/" . $this->getTenantName() . "/instances/" . $element->InstanceKey . "/element";
echo ("getResponse (' " . $url . " ');<br />");
if ($relatedInstance !== null)
{
// related instance is passed in by:
@ -421,10 +419,15 @@
public function processElement(InstanceReference $element, array $values) : array
{
$url = "/tenants/" . $this->getTenantName() . "/instances/" . $element->GlobalIdentifier . "/element";
echo ("<br /><br />POST " . $url . "<br />Values:<br />");
echo ("<br /><br />");
print_r($values);
echo ("<br /><br />");
$debug = false;
if ($debug) {
// !!! this will screw up login, use sparingly !!!
echo ("<br /><br />POST " . $url . "<br />Values:<br />");
echo ("<br /><br />");
print_r($values);
echo ("<br /><br />");
}
$result = $this->curl_request_json($url, HttpRequestMethod::POST, $values);
return $result;
}

View File

@ -46,7 +46,6 @@
//*** DO NOT DELETE, WE STILL USE THIS FOR LOGIN ***//
if (is_callable($this->ProcessPostbackFunction))
{
echo ("calling user function");
// call user-defined ProcessPostbackFunction
return call_user_func($this->ProcessPostbackFunction, $this, $element, $array);
}