creating a random string for field names to work for all languages.

This commit is contained in:
Naomi 2013-08-20 15:31:13 -04:00
parent 6d5febe4f7
commit 2e572c652c
2 changed files with 3 additions and 1 deletions

View File

@ -498,6 +498,7 @@ class Application_Service_HistoryService
foreach($template["fields"] as $index => $field) {
$key = $field["name"];
$value = "";
if (in_array($key, $required)) {

View File

@ -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,