Uploaded image for project: 'Page Subscription'
  1. Page Subscription
  2. PAGESUB-15

Notification parameters must set the model value as default value in the API

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.5.0
    • 2.4.0
    • None
    • 4.3 M3

      1. Declare a new page notification observer with his site parameter

      <extension point="org.ametys.web.site.SiteConfigurationExtensionPoint"
                             id="page.subscription.specification.reaction">
                      <param id="page-subscription-specification-reaction" type="boolean">
                          <label i18n="false">Réagir à des parties de la spécification</label>
                          <description i18n="false">Cochez cette case si les abonnés à la page doivent être notifiés lors qu'on réagit à une partie de la spécification de la page</description>
                          <default-value>true</default-value>
                          <category i18n="true">plugin.page-subscription:PLUGINS_PAGE_SUBSCRIBE_CONFIG_CATEGORY</category>
                          <group i18n="true">plugin.page-subscription:PLUGINS_PAGE_SUBSCRIBE_CONFIG_GROUP</group>
                      </param>
      </extension>
                  
      <extension point="org.ametys.core.observation.ObserverExtensionPoint"
                             id="org.ametys.plugins.specifications.listener.reaction"
                             class="org.ametys.plugins.specifications.PageSubscriptionReactionObserver">
      </extension>
      

      2. Go to the site configuration panel. This parameter is checked or in the JCR this parameter is not set.
      The API return false as default value so notification is not sent

          [PAGESUB-15] Notification parameters must set the model value as default value in the API

          There are no comments yet on this issue.

            Unassigned Unassigned
            lbouchet Loïc Bouchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: