fix: add DB adminwizard insert, fix test_extended bug
All checks were successful
Docker Build & Push SugarCRM 6.5 CE / build-and-push (push) Successful in 12s

This commit is contained in:
root
2026-05-24 15:06:54 +02:00
parent 707d285e54
commit 4e44aa5b7a
2 changed files with 24 additions and 1 deletions

13
init.sh
View File

@@ -102,7 +102,18 @@ SIEOF
sed -i "/'site_url' =>/a\\ sed -i "/'site_url' =>/a\\
'adminwizard' => array('completed' => true)," "$CONFIG_PHP" 2>/dev/null || true 'adminwizard' => array('completed' => true)," "$CONFIG_PHP" 2>/dev/null || true
fi fi
echo "Admin Wizard disabled" echo "Admin Wizard disabled (config)"
# Also insert adminwizard into DB (critical for API access!)
php -r "
\$c = @mysql_connect('$DB_HOST_NAME:$DB_TCP_PORT', '$DB_USER_NAME', '$DB_PASSWORD');
if (\$c) {
mysql_select_db('$DATABASE_NAME', \$c);
mysql_query(\"INSERT INTO config (category, name, value) VALUES ('system', 'adminwizard', '{\\\"completed\\\":true}')\", \$c);
mysql_close(\$c);
}
" 2>/dev/null || true
echo "Admin Wizard disabled (DB)"
else else
echo "FAILED: config.php empty after silent install!" echo "FAILED: config.php empty after silent install!"
cat /tmp/install_output.html 2>/dev/null | head -20 cat /tmp/install_output.html 2>/dev/null | head -20

View File

@@ -249,6 +249,18 @@ def main():
return True return True
return False return False
test("Globale Suche nach 'API'", search_accounts)
"search_string": "API",
"modules": ["Accounts"],
"offset": 0,
"max_results": 10,
})
if result and "entry_list" in result:
count = result.get("entry_list", [])
print(f" Suche 'API': {len(count)} Treffer in Accounts")
return True
return False
test("Globale Suche nach 'API'", search_by_module) test("Globale Suche nach 'API'", search_by_module)
# === RELATIONSHIPS === # === RELATIONSHIPS ===