Skip to content

Commit

Permalink
Dev: Use L as prefix for auto-generated label codes
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Sep 21, 2021
1 parent f8a0a94 commit fe9a3ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions application/helpers/update/updatedb_helper.php
Expand Up @@ -8082,8 +8082,7 @@ function regenerateLabelCodes400(int $lid, $hasLanguageColumn = true)
$oDB->createCommand(
sprintf(
"UPDATE {{labels}} SET code = %s WHERE id = %d",
// Use simply nr as label code
$oDB->quoteValue((string) $key + 1),
$oDB->quoteValue("L" . (string) $key + 1),
$label['id']
)
)->execute();
Expand Down

0 comments on commit fe9a3ae

Please sign in to comment.