Uploaded image for project: 'Offre de formation'
  1. Offre de formation
  2. ODF-939

Un champ de type geolocalisation ne peut être défini comme synchronisable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.3.0
    • 2.3.0
    • Edition, Synchro
    • None

      En édition d'une formation j'ai le message d'erreur suivant :
      "Une erreur est survenue dans le traitement de la réponse serveur
      TypeError: widget.syncBtn is undefined"

      Et l'affichage comprend 2 champs l'un sous l'autre sans le bouton de syncho.

          [ODF-939] Un champ de type geolocalisation ne peut être défini comme synchronisable

          Laurence Aumeunier made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Closed [ 6 ]

          Un repeater ne peut être synchronisable.

          Champ geocode synchronisable hors repeater fonctionne bien.

          Laurence Aumeunier added a comment - Un repeater ne peut être synchronisable. Champ geocode synchronisable hors repeater fonctionne bien.
          Laure Lopez made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          Laure Lopez added a comment -

          How to reproduce :

          • I added that code in WEB-INF/param/content-types/_override/org.ametys.plugins.odf.Content.program.xml
            <cms:repeater name="geolocation" initial-size="0">
                    <label i18n="true">plugin.default-ctypes:CONTENT_NEWS_GEOLOCATION</label>
                    <description i18n="true">plugin.default-ctypes:CONTENT_NEWS_GEOLOCATION_DESC</description>
                    <cms:add-label i18n="true">plugin.default-ctypes:CONTENT_NEWS_GEOLOCATION_ADD</cms:add-label>
                    <cms:del-label i18n="true">plugin.default-ctypes:CONTENT_NEWS_GEOLOCATION_DEL</cms:del-label>
            	    <cms:metadata name="campus" type="geocode">
            	        <label i18n="true">plugin.default-ctypes:CONTENT_NEWS_CAMPUS</label>
            	        <description i18n="true">plugin.default-ctypes:CONTENT_NEWS_CAMPUS_DESC</description>
            	    </cms:metadata>
                </cms:repeater>
          • I added that line in WEB-INF\param\odf-synchro.xml
            <metadata name="geolocation" />
          • I restarted
          • I edited a formation, an error ocurred : TypeError: widget is null

          Laure Lopez added a comment - How to reproduce : I added that code in WEB-INF/param/content-types/_override/org.ametys.plugins.odf.Content.program.xml <cms:repeater name= "geolocation" initial-size= "0" > <label i18n= " true " >plugin. default -ctypes:CONTENT_NEWS_GEOLOCATION</label> <description i18n= " true " >plugin. default -ctypes:CONTENT_NEWS_GEOLOCATION_DESC</description> <cms:add-label i18n= " true " >plugin. default -ctypes:CONTENT_NEWS_GEOLOCATION_ADD</cms:add-label> <cms:del-label i18n= " true " >plugin. default -ctypes:CONTENT_NEWS_GEOLOCATION_DEL</cms:del-label> <cms:metadata name= "campus" type= "geocode" > <label i18n= " true " >plugin. default -ctypes:CONTENT_NEWS_CAMPUS</label> <description i18n= " true " >plugin. default -ctypes:CONTENT_NEWS_CAMPUS_DESC</description> </cms:metadata> </cms:repeater> I added that line in WEB-INF\param\odf-synchro.xml <metadata name= "geolocation" /> I restarted I edited a formation, an error ocurred : TypeError: widget is null
          Laurence Aumeunier made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Laurence Aumeunier made changes -
          Assignee New: Laurence Aumeunier [ laurence ]
          Laurence Aumeunier made changes -
          Fix Version/s New: 2.3.0 [ 12026 ]
          Laurence Perier made changes -
          Attachment New: SynchroGeo.png [ 15281 ]
          Laurence Perier created issue -

            laurence Laurence Aumeunier
            lperier Laurence Perier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: