2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Hystepik
2025-02-19 15:19:52 +01:00
parent 4e26febdd8
commit 20e669c136
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
$currentConfigurationsJson = getDolGlobalString('AI_CONFIGURATIONS_PROMPT'); $currentConfigurationsJson = getDolGlobalString('AI_CONFIGURATIONS_PROMPT');
$currentConfigurations = json_decode($currentConfigurationsJson, true); $currentConfigurations = json_decode($currentConfigurationsJson, true);
if ($action == 'updatefeaturemodel' && !empty($formSetup) && is_object($formSetup) && !empty($user->admin)) { if ($action == 'updatefeaturemodel' && !empty($user->admin)) {
$formSetup->saveConfFromPost(); $formSetup->saveConfFromPost();
$action = 'edit'; $action = 'edit';
} }

View File

@@ -51,7 +51,7 @@ function getListOfAIFeatures()
/** /**
* Get list of available ai services * Get list of available ai services
* *
* @return array<string,array<string,string>> * @return array<int|string,mixed>
*/ */
function getListOfAIServices() function getListOfAIServices()
{ {