diff --git a/Core/Base/DataBase/PostgresqlEngine.php b/Core/Base/DataBase/PostgresqlEngine.php index 6e5c0aec0d..5b170259d9 100644 --- a/Core/Base/DataBase/PostgresqlEngine.php +++ b/Core/Base/DataBase/PostgresqlEngine.php @@ -289,7 +289,7 @@ public function updateSequence($link, $tableName, $fields) { foreach ($fields as $colName => $field) { /// serial type - if (stripos($field['default'], 'nextval(') !== false) { + if (!empty($field['default']) && stripos($field['default'], 'nextval(') !== false) { $sql = "SELECT setval('" . $tableName . "_" . $colName . "_seq', (SELECT MAX(" . $colName . ") from " . $tableName . "));"; $this->exec($link, $sql); } diff --git a/Core/Controller/Root.php b/Core/Controller/Root.php index 0ee49e1bf5..ab260c900d 100644 --- a/Core/Controller/Root.php +++ b/Core/Controller/Root.php @@ -27,7 +27,7 @@ public function getPageData(): array { $data = parent::getPageData(); $data['menu'] = 'reports'; - $data['title'] = 'root'; + $data['title'] = 'FacturaScripts: contabilidad y facturacion libre'; $data['icon'] = 'fas fa-home'; $data['showonmenu'] = false; return $data;