remove problematic debug echos that screw up login (output before header call)
This commit is contained in:
parent
9d575a4efc
commit
4da713ae56
@ -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";
|
||||
|
||||
$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;
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user