Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-10317

Add sensible defaults/spec for UFGroup create api

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.0
    • Component/s: None
    • Labels:
      None

      Description

      I went back to the discussion we had about #now & other macros to try to populate UFGroup.create properly (who created & when)

      I wrote the spec using the "normal" $session & date() functions, works ok.

      Assigning to you see if you get a better idea (eg. obviously, setting this default is in the form & not in the bao, hence the duplication)

      Also, I'm wondering if it's a good idea to let (when using ajax) the caller set the owner/date they want, but that's a way more general problem than the UFGroup only. We might need to introduce a new api.override that applies only is ajax (or check_permission in general)?

        Attachments

          Activity

            People

            • Assignee:
              xavier xavier dutoit
              Reporter:
              xavier xavier dutoit
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: