Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoRazorX committed Apr 17, 2024
2 parents 575e869 + fa65b16 commit d82ccf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Core/Base/DataBase/PostgresqlEngine.php
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion Core/Controller/Root.php
Expand Up @@ -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;
Expand Down

0 comments on commit d82ccf6

Please sign in to comment.