]> git.mxchange.org Git - mailer.git/blobdiff - templates/xml/member/member_list_subid_stats.xml
Fix for listing all user's stats instead of stats of only a specific sub id
[mailer.git] / templates / xml / member / member_list_subid_stats.xml
index 4c1882a5409015d05aa75b7ea2f142c0a12f78d7..d1ef38cad3719b48c75f4027b03a5254ef73d029 100644 (file)
@@ -64,7 +64,6 @@ MA  02110-1301  USA
                        always be set), alias (again can be left empty) and SQL function
                        (can also be left empty) which shall be applied on the column.
                        //-->
-                       <select-data-from-list-entry type="string" table="" value="id" alias="" function="" />
                        <select-data-from-list-entry type="string" table="" value="subid" alias="" function="" />
                        <select-data-from-list-entry type="string" table="" value="referral_url" alias="" function="" />
                        <select-data-from-list-entry type="string" table="" value="remote_address" alias="" function="" />
@@ -76,8 +75,9 @@ MA  02110-1301  USA
                //-->
                <where-select-from-list>
                        <!--
-                       Search for current user's sub ids
+                       Search for current user's sub id statistics
                        //-->
+                       <where-select-from-list-entry type="string" table="" value="subid" condition="EQUALS" look-for="{%get,getSubId=id%}" />
                        <where-select-from-list-entry type="string" table="" value="refid" condition="EQUALS" look-for="{%pipe,getMemberId%}" />
                </where-select-from-list>
                <!--
@@ -119,4 +119,8 @@ MA  02110-1301  USA
                        </callback-extra-parameter-list>
                </column-callback-list-entry>
        </column-callback-list>
+       <!--
+       How the named column shall be logical linked to the above.
+       //-->
+       <where-condition type="string" name="refid" condition="AND" />
 </member-list-data>