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
All checks were successful
Docker Build & Push SugarCRM 6.5 CE / build-and-push (push) Successful in 12s
This commit is contained in:
13
init.sh
13
init.sh
@@ -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
|
||||||
|
|||||||
@@ -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 ===
|
||||||
|
|||||||
Reference in New Issue
Block a user