CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • CiviEvent Suggestions (Moderator: Michał Mach) »
  • Event template + mandatory custom field = Problem
Pages: [1]

Author Topic: Event template + mandatory custom field = Problem  (Read 2162 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Event template + mandatory custom field = Problem
February 14, 2012, 03:20:07 am
There is a problem with mandatory custom fields for events, when creating an Event Template. I can reproduce it on the demo, r38615.

Scenario:
  • Each event has some custom data (eg, the section of the website where the Event is displayed)
  • This field is mandatory (eg, the views won't pick up the event if the custom data is missing)
  • Need to create an Event Template where this custom data is not set (eg the template is used for Events that can appear in any section)
  • CiviEvent insists the custom data must be set else it refuses to save the Event Template

Suggestion: bypass the check that mandatory custom fields are set on Events, in the case where the Event is being saved as an Event Template.

Justification:
  • The mandatory setting on the custom field is for Events, not Event Templates
  • The bypassed check will be validated when the Event Template is used to create an Event

Corollaries:
  • Currently, Event Type is mandatory for Event Templates - can this rule be relaxed, given it will be checked when the Event Template is used to create an Event?
  • Currently, Participant Role is mandatory for Event Templates - can this rule be relaxed, given it will be checked when the Event Template is used to create an Event?

Ken

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • CiviEvent Suggestions (Moderator: Michał Mach) »
  • Event template + mandatory custom field = Problem

This forum was archived on 2017-11-26.