move from legacy compat JSON to_json to modern JSON::XS encode_json, RT#22630
[freeside.git] / httemplate / elements / tr-select-cust_location.html
index 4c17249..780bf96 100644 (file)
@@ -153,7 +153,7 @@ Example:
     }
   }
 
-  var location_fields = <% to_json(\@location_fields) %>;
+  var location_fields = <% encode_json(\@location_fields) %>;
   function update_location( string ) {
     var hash = JSON.parse(string);
     for(var i = 0; i < location_fields.length; i++) {