use current tenant name for search
This commit is contained in:
parent
67fd22229f
commit
f90923fd0f
@ -204,7 +204,7 @@
|
|||||||
}
|
}
|
||||||
public function search(string $query, array | InstanceReference | null $parentClasses = null, string | null $m = null) : array | bool
|
public function search(string $query, array | InstanceReference | null $parentClasses = null, string | null $m = null) : array | bool
|
||||||
{
|
{
|
||||||
$uri = "/tenants/super/instances?";
|
$uri = "/tenants/" . $this->getTenantName() . "/instances?";
|
||||||
|
|
||||||
if ($m != null)
|
if ($m != null)
|
||||||
{
|
{
|
||||||
@ -363,6 +363,7 @@
|
|||||||
$url = "/tenants/" . $this->getTenantName() . "/instances/" . $element->InstanceKey . "/element";
|
$url = "/tenants/" . $this->getTenantName() . "/instances/" . $element->InstanceKey . "/element";
|
||||||
if ($relatedInstance !== null)
|
if ($relatedInstance !== null)
|
||||||
{
|
{
|
||||||
|
echo ("POST " . $url);
|
||||||
// related instance is passed in by:
|
// related instance is passed in by:
|
||||||
// UI Task.has Related Menu Item
|
// UI Task.has Related Menu Item
|
||||||
// -> Related Menu Item.uses object of Class
|
// -> Related Menu Item.uses object of Class
|
||||||
@ -378,9 +379,14 @@
|
|||||||
$workDataPost[UUID::parse($key)->__toString()] = strval($value);
|
$workDataPost[UUID::parse($key)->__toString()] = strval($value);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
print_r($workDataPost);
|
||||||
$json = $this->curl_request_json($url, HttpRequestMethod::POST, $workDataPost);
|
$json = $this->curl_request_json($url, HttpRequestMethod::POST, $workDataPost);
|
||||||
return $json;
|
return $json;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo ("GET " . $url . "\n");
|
||||||
|
}
|
||||||
$json = $this->curl_request_json($url);
|
$json = $this->curl_request_json($url);
|
||||||
return $json;
|
return $json;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user