Closed (fixed)
Project:
VoIP Webform
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
4 Apr 2012 at 19:49 UTC
Updated:
19 Apr 2012 at 20:51 UTC
Jump to comment: Most recent file
As noted in the module's description, there is not currently a method to connect the Webform Submission ID and the VoIP Call ID. This would be useful in displaying call information with the submission results (i.e. Call duration, phone number, etc). This patch aims to fix the problem by the following:
- Create a database table voipwebform_submissions with fields sid and cid.
- On VoIP Webform submission, we simple insert the two values.
This patch does not address output of the connected data on the submission results page. It appears that we might need to request a hook from the webform module to push this data into it, but collecting the data to begin with is good start.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | voipwebform-link-sid-and-cid-1515502-3.patch | 1.17 KB | matt@antinomia |
| #1 | voipwebform-link-sid-and-cid-1515502.patch | 1.46 KB | matt@antinomia |
Comments
Comment #1
matt@antinomia commentedPatch
Comment #2
djdevinThere are some other tickets in here with similar patches (adding new tables) but you only need to run drupal_install_schema('voipwebform') to install all tables in hook_schema. Just take those lines out and leave the new hook_schema definitions.
Comment #3
matt@antinomia commentedCheck. Here's the new one. It's testing fine for me. I'm going to go ahead and commit it, or at least try (first Git commit). :)
Comment #4
matt@antinomia commentedWell, that was easy!
http://drupalcode.org/project/voipwebform.git/commit/609730f