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

civicrm_create_contact does not recognize date format

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Assume custom_3 is a date field, you can test by running a script similar to the below. Put the script in bin/createContact.php and test it

      <?php

      $params = array( 'contact_type' => 'Individual',
      'first_name' => 'Chris'
      'last_name' => 'Amy',
      'custom_3' => '20030120000000' );

      require_once '../civicrm.config.php';
      require_once 'api/v2/Contact.php';
      $result = civicrm_contact_add( $params );
      CRM_Core_Error::debug( $result );

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              lobo Donald A. Lobo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: