]> git.mxchange.org Git - mailer.git/blobdiff - inc/filter/coupon_filter.php
Referal system refactured (and some parts fixed), wrapper function introduced:
[mailer.git] / inc / filter / coupon_filter.php
index 4aa7b8e82f195ad21b8fd8fd2abe4eefc3f3ccea..9a25fb0100c73f531ece318b88a2a360389b5d2c 100644 (file)
@@ -42,9 +42,10 @@ if (!defined('__SECURITY')) {
 
 // Filter to change column name for the right "points account"
 function FILTER_COUPON_CHANGE_POINTS_COLUMN_NAME ($filterData) {
-       // Get the column name from extension's name and 'locked'
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
-       $filterData['column'] = getPointsColumnNameFromExtensionNameLocked('coupon', $filterData['locked']);
+       // Get the column name from extension's name and 'locked'
+       die('<pre>'.print_r($filterData,true).'</pre>');
+       $filterData['column'] = getPointsColumnNameFromSubjectLocked($filterData['subject'], $filterData['locked']);
 
        // Return data
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');