projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72887d2
)
Layouthelper: Automatisch generierte ids müssen mit einem alphabetischen Zeichen...
author
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 5 Dec 2011 10:22:27 +0000
(11:22 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 5 Dec 2011 10:22:27 +0000
(11:22 +0100)
SL/Template/Plugin/L.pm
patch
|
blob
|
history
diff --git
a/SL/Template/Plugin/L.pm
b/SL/Template/Plugin/L.pm
index
34a20f3
..
770c7ba
100644
(file)
--- a/
SL/Template/Plugin/L.pm
+++ b/
SL/Template/Plugin/L.pm
@@
-13,7
+13,7
@@
use strict;
# Do not use these id's to store information across requests.
my $_id_sequence = int rand 1e7;
sub _tag_id {
- return
$_id_sequence = ($_id_sequence + 1) % 1e7
;
+ return
"id_" . ( $_id_sequence = ($_id_sequence + 1) % 1e7 )
;
}
}