creating a random string for field names to work for all languages.
This commit is contained in:
parent
6d5febe4f7
commit
2e572c652c
|
@ -498,6 +498,7 @@ class Application_Service_HistoryService
|
|||
foreach($template["fields"] as $index => $field) {
|
||||
|
||||
$key = $field["name"];
|
||||
$value = "";
|
||||
|
||||
if (in_array($key, $required)) {
|
||||
|
||||
|
|
|
@ -90,7 +90,8 @@ var AIRTIME = (function(AIRTIME) {
|
|||
label = $div.find("input").val(),
|
||||
name;
|
||||
|
||||
name = label.toLowerCase().replace(/[^a-z0-9]+/g, "");
|
||||
//create a string name that will work for all languages.
|
||||
name = Math.random().toString(36).substring(7);
|
||||
|
||||
var config = {
|
||||
name: name,
|
||||
|
|
Loading…
Reference in New Issue