1. 07 Oct, 2018 4 commits
  2. 06 Oct, 2018 4 commits
  3. 05 Oct, 2018 4 commits
  4. 03 Oct, 2018 13 commits
  5. 01 Oct, 2018 3 commits
  6. 30 Sep, 2018 1 commit
  7. 29 Sep, 2018 1 commit
  8. 28 Sep, 2018 7 commits
  9. 27 Sep, 2018 3 commits
    • eileen's avatar
      Merge pull request #12867 from mattwire/entityformajaxcustomdatafreeze · 8a687d6d
      eileen authored
      Freeze custom data elements when viewing an entity
      8a687d6d
    • totten's avatar
      (DX) Civi::contactSettings - Add a facade for working with the logged-in user's settings · 01d70c56
      totten authored
      Before
      ------
      
      To read/write a setting for the logged-in user, you need a snippet like this:
      
      ```php
      $cid = CRM_Core_Session::getLoggedInContactID();
      $myFilter = Civi::service('settings_manager')
        ->getBagByContact(NULL, $cid)
        ->get('activity_tab_filter');
      ```
      
      After
      -----
      
      To read/write a setting for the logged-in user, you can use a snippet like this:
      
      ```php
      $myFilter = Civi::contactSettings()->get('activity_tab_filter');
      ```
      
      Technical Details
      -----------------
      
      * A convenience function like this is liable to be used in lazy circumstances where
        the developer is unlikely to check their conditions carefully. Therefore, the
        errors are reported as exceptions so that mistakes are easiliy revealed.
      * This is technically a small contract change to `SettingsManager::getBagByContact()`
        because it now interprets `$contactId===NULL` as meaning "the logged-in user".
        However, I don't think NULL was a sensible value before, and this interface
        isn't widely known/used.
      01d70c56
    • colemanw's avatar