diff --git a/airtime_mvc/application/services/HistoryService.php b/airtime_mvc/application/services/HistoryService.php index a2ae5b6b6..c55a2c5df 100644 --- a/airtime_mvc/application/services/HistoryService.php +++ b/airtime_mvc/application/services/HistoryService.php @@ -498,6 +498,7 @@ class Application_Service_HistoryService foreach($template["fields"] as $index => $field) { $key = $field["name"]; + $value = ""; if (in_array($key, $required)) { diff --git a/airtime_mvc/public/js/airtime/playouthistory/configuretemplate.js b/airtime_mvc/public/js/airtime/playouthistory/configuretemplate.js index 50223732f..26fad4a30 100644 --- a/airtime_mvc/public/js/airtime/playouthistory/configuretemplate.js +++ b/airtime_mvc/public/js/airtime/playouthistory/configuretemplate.js @@ -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,