·
Added a discussion

I need to know when a particular field (Radio set) gets changed in PEOPLE by a user. Does not matter how I am notified (email, conversation message, etc.) but that I am somehow made aware. I can't seem to find an APP that will do this, so I wonder is there any way to make UNA do it directly?

  • 470
Comments
    • Hello @sfraden !

      UNA can track the moments when the profile changes his info, but if you need to watch the certain field it will require the code's changes code of the modules/boonex/persons/ classes/BxPersonsAlertsResponse.php file. The parent class has the following condition in the main response method there like:

      if('system' == $oAlert->sUnit && 'save_setting' == $oAlert->sAction && isset($CNF['PARAM_SEARCHABLE_FIELDS']) && $CNF['PARAM_SEARCHABLE_FIELDS'] == $oAlert->aExtras['option'])
            return $this->_oModule->_oDb->alterFulltextIndex();
      

      So you need to add this method to your child class and expand it:

      public function response($oAlert) {
        parent::response($oAlert);
        if ('save_setting' == $oAlert->sAction) {
          //the code to catch changes
          }
      }
      
      Login or Join to comment.