Skip to content

Commit

Permalink
T240540: spé koesio: backport PR cœur 32621: ajout "guirlandes"
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-florianm committed Jan 13, 2025
1 parent 4a38a5b commit da61078
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/core/lib/functions.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -8882,7 +8882,8 @@ function dol_osencode($str)
*/
function dol_getIdFromCode($db, $key, $tablename, $fieldkey = 'code', $fieldid = 'id', $entityfilter = 0, $filters = '', $useCache = true)
{
static $cache_codes = array();
/* START SPE KOESIO T240540: BACKPORT PR #32621 */
global $cache_codes;

// If key empty
if ($key == '') {
Expand Down Expand Up @@ -8921,6 +8922,7 @@ function dol_getIdFromCode($db, $key, $tablename, $fieldkey = 'code', $fieldid =
} else {
return -1;
}
/* END SPE KOESIO T240540: BACKPORT PR #32621 */
}

/**
Expand Down

0 comments on commit da61078

Please sign in to comment.