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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.5.0
    • Labels:
      None
    • Sprint:
      4.3 M3

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: