Projet

Général

Profil

Révision 01f36513

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/webform/views/webform_handler_field_submission_data.inc
1 1
<?php
2 2

  
3 3
/**
4
 * @file
5 4
 * Views handler to display data value of a webform submission component.
6
 */
7

  
8
/**
5
 *
9 6
 * Field handler to show submission data.
10 7
 *
11 8
 * @ingroup views_field_handlers
......
195 192
      $component = $webform->webform['components'][$cid];
196 193
      $submission = $this->view->_webform_submissions[$nid][$sid];
197 194
      if ($submission->nid != $nid) {
198
        // The actual submission is from a different webform than the one used to define the view.
199
        // Rather than using the component with the same cid, try to match the form_key.
195
        // The actual submission is from a different webform than the one used
196
        // to define the view. Rather than using the component with the same
197
        // cid, try to match the form_key.
200 198
        if (!isset($this->view->_webform_components[$nid][$submission->nid][$cid])) {
201 199
          if (!isset($this->view->_webform_components[$nid][$submission->nid]['webform'])) {
202 200
            $this->view->_webform_components[$nid][$submission->nid]['webform'] = $webform;
......
213 211
        }
214 212
        $webform = $this->view->_webform_components[$nid][$submission->nid]['webform'];
215 213
        $component = $this->view->_webform_components[$nid][$submission->nid][$cid];
216
        // Note: $nid and $cid refer to the definition webform, not the submission webform
217
        // whereas $component refers to the submission component.
214
        // Note: $nid and $cid refer to the definition webform, not the
215
        // submission webform whereas $component refers to the submission
216
        // component.
218 217
      }
219 218

  
220 219
      if ($this->options['format'] == 'html') {

Formats disponibles : Unified diff