ソースを参照

Se actualiza una vista

Maximiliano Schvindt 7 年 前
コミット
6d0d25df81
1 ファイル変更4 行追加4 行削除
  1. 4 4
      Resources/views/Leaflet/map.html.twig

+ 4 - 4
Resources/views/Leaflet/map.html.twig

@@ -16,10 +16,10 @@
 
 {% if object is defined %}
 <script type="text/javascript">
-    {% if object.extraData is defined %}
-    var dataValue = '{{ object.extraData|raw }}';
-    {% elseif object.location is defined %}
-    var dataValue = '{{ object.location.extraData|raw }}';
+    {% if object.location.extraData is defined %}
+        var dataValue = '{{ object.location.extraData|raw }}';
+    {% elseif object.extraData is defined %}
+        var dataValue = '{{ object.extraData|raw }}';
     {% endif %}
 </script>
 {% endif %}