This commit is contained in:
Yuri Kuznetsov
2024-01-07 19:36:12 +02:00
parent 273ca15c17
commit 46712cd967
3 changed files with 71 additions and 86 deletions

View File

@@ -38,6 +38,9 @@ use Espo\Core\Exceptions\Conflict;
use Espo\Core\Exceptions\Error;
use Espo\Core\Exceptions\Forbidden;
/**
* @noinspection PhpUnused
*/
class FieldManager
{
/**
@@ -163,12 +166,12 @@ class FieldManager
throw new BadRequest();
}
$result = $this->fieldManagerTool->delete($scope, $name);
$this->fieldManagerTool->delete($scope, $name);
$this->dataManager->clearCache();
$this->dataManager->rebuildMetadata();
return $result;
return true;
}
/**