Working Copy
authorwunschtacho <wunschtacho@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 16 Oct 2012 15:52:37 +0000 (15:52 +0000)
committerwunschtacho <wunschtacho@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 16 Oct 2012 15:52:37 +0000 (15:52 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/powermail_cond/trunk@67138 735d13b6-9817-0410-8766-e36946ffe9aa

.idea/workspace.xml
Classes/Utility/FieldlistingBackend.php
Configuration/TCA/Rule.php

index 07c22a0..f2c6d8a 100644 (file)
@@ -2,27 +2,9 @@
 <project version="4">\r
   <component name="ChangeListManager">\r
     <list default="true" readonly="true" id="500e5988-e13b-4ba1-8a60-e63a97f737a1" name="Default" comment="">\r
-      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\Configuration\TCA\Conditions.php" afterPath="$PROJECT_DIR$/Configuration/TCA/Condition.php" />\r
-      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\Configuration\TCA\Rules.php" afterPath="$PROJECT_DIR$/Configuration/TCA/Rule.php" />\r
-      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\files\js\powermail_cond.js" afterPath="$PROJECT_DIR$/oldFiles/js/powermail_cond.js" />\r
-      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\files\static\constants.txt" afterPath="$PROJECT_DIR$/oldFiles/static/constants.txt" />\r
-      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\files\static\setup.txt" afterPath="$PROJECT_DIR$/oldFiles/static/setup.txt" />\r
-      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\lib\class.tx_powermailcond_ajaxFieldList_eid.php" afterPath="$PROJECT_DIR$/oldLib/class.tx_powermailcond_ajaxFieldList_eid.php" />\r
-      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\lib\class.tx_powermailcond_ajaxWriteInSession_eid.php" afterPath="$PROJECT_DIR$/oldLib/class.tx_powermailcond_ajaxWriteInSession_eid.php" />\r
-      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\lib\class.tx_powermailcond_div.php" afterPath="$PROJECT_DIR$/oldLib/class.tx_powermailcond_div.php" />\r
-      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\lib\class.tx_powermailcond_fields_be.php" afterPath="$PROJECT_DIR$/oldLib/class.tx_powermailcond_fields_be.php" />\r
-      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\lib\class.tx_powermailcond_pidContainer.php" afterPath="$PROJECT_DIR$/oldLib/class.tx_powermailcond_pidContainer.php" />\r
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />\r
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Classes/Utility/FieldlistingBackend.php" afterPath="$PROJECT_DIR$/Classes/Utility/FieldlistingBackend.php" />\r
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Resources/Private/Language/locallang_db.xml" afterPath="$PROJECT_DIR$/Resources/Private/Language/locallang_db.xml" />\r
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/ext_tables.php" afterPath="$PROJECT_DIR$/ext_tables.php" />\r
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/ext_tables.sql" afterPath="$PROJECT_DIR$/ext_tables.sql" />\r
-      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\doc\manual.sxw" afterPath="$PROJECT_DIR$/oldDoc/manual.sxw" />\r
-      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\doc" afterPath="$PROJECT_DIR$/oldDoc" />\r
-      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\files\js" afterPath="$PROJECT_DIR$/oldFiles/js" />\r
-      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\files\static" afterPath="$PROJECT_DIR$/oldFiles/static" />\r
-      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\files" afterPath="$PROJECT_DIR$/oldFiles" />\r
-      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\lib" afterPath="$PROJECT_DIR$/oldLib" />\r
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Configuration/TCA/Rule.php" afterPath="$PROJECT_DIR$/Configuration/TCA/Rule.php" />\r
     </list>\r
     <ignored path="powermail_cond@powermailt347.in2code.de.iws" />\r
     <ignored path=".idea/workspace.xml" />\r
     <favorites_list name="powermail_cond@powermailt347.in2code.de" />\r
   </component>\r
   <component name="FileEditorManager">\r
-    <leaf />\r
+    <leaf>\r
+      <file leaf-file-name="FieldlistingBackend.php" pinned="false" current="true" current-in-tab="true">\r
+        <entry file="file://$PROJECT_DIR$/Classes/Utility/FieldlistingBackend.php">\r
+          <provider selected="true" editor-type-id="text-editor">\r
+            <state line="65" column="32" selection-start="2522" selection-end="2522" vertical-scroll-proportion="0.70614034">\r
+              <folding>\r
+                <element signature="e#987#1189#0" expanded="false" />\r
+              </folding>\r
+            </state>\r
+          </provider>\r
+        </entry>\r
+      </file>\r
+      <file leaf-file-name="ext_tables.sql" pinned="false" current="false" current-in-tab="false">\r
+        <entry file="file://$PROJECT_DIR$/ext_tables.sql">\r
+          <provider selected="true" editor-type-id="text-editor">\r
+            <state line="3" column="52" selection-start="87" selection-end="126" vertical-scroll-proportion="0.0">\r
+              <folding />\r
+            </state>\r
+          </provider>\r
+        </entry>\r
+      </file>\r
+      <file leaf-file-name="Rule.php" pinned="false" current="false" current-in-tab="false">\r
+        <entry file="file://$PROJECT_DIR$/Configuration/TCA/Rule.php">\r
+          <provider selected="true" editor-type-id="text-editor">\r
+            <state line="43" column="35" selection-start="1404" selection-end="1422" vertical-scroll-proportion="-18.307692">\r
+              <folding />\r
+            </state>\r
+          </provider>\r
+        </entry>\r
+      </file>\r
+    </leaf>\r
   </component>\r
   <component name="FindManager">\r
     <FindUsagesManager>\r
         <option value="$PROJECT_DIR$/Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_rule.xml" />\r
         <option value="$PROJECT_DIR$/Configuration/TCA/Rules.php" />\r
         <option value="$PROJECT_DIR$/Configuration/TCA/Conditions.php" />\r
-        <option value="$PROJECT_DIR$/Classes/Utility/FieldlistingBackend.php" />\r
-        <option value="$PROJECT_DIR$/Configuration/TCA/Rule.php" />\r
         <option value="$PROJECT_DIR$/ext_tables.sql" />\r
         <option value="$PROJECT_DIR$/ext_tables.php" />\r
         <option value="$PROJECT_DIR$/Configuration/TCA/Condition.php" />\r
         <option value="$PROJECT_DIR$/Resources/Private/Language/locallang_db.xml" />\r
+        <option value="$PROJECT_DIR$/Configuration/TCA/Rule.php" />\r
+        <option value="$PROJECT_DIR$/Classes/Utility/FieldlistingBackend.php" />\r
       </list>\r
     </option>\r
   </component>\r
               <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
             </PATH_ELEMENT>\r
             <PATH_ELEMENT>\r
-              <option name="myItemId" value="Resources" />\r
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
-            </PATH_ELEMENT>\r
-          </PATH>\r
-          <PATH>\r
-            <PATH_ELEMENT>\r
-              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />\r
-            </PATH_ELEMENT>\r
-            <PATH_ELEMENT>\r
-              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
-            </PATH_ELEMENT>\r
-            <PATH_ELEMENT>\r
-              <option name="myItemId" value="Resources" />\r
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
-            </PATH_ELEMENT>\r
-            <PATH_ELEMENT>\r
-              <option name="myItemId" value="Private" />\r
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
-            </PATH_ELEMENT>\r
-          </PATH>\r
-          <PATH>\r
-            <PATH_ELEMENT>\r
-              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />\r
-            </PATH_ELEMENT>\r
-            <PATH_ELEMENT>\r
-              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
-            </PATH_ELEMENT>\r
-            <PATH_ELEMENT>\r
-              <option name="myItemId" value="Resources" />\r
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
-            </PATH_ELEMENT>\r
-            <PATH_ELEMENT>\r
-              <option name="myItemId" value="Private" />\r
+              <option name="myItemId" value="Configuration" />\r
               <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
             </PATH_ELEMENT>\r
             <PATH_ELEMENT>\r
-              <option name="myItemId" value="Language" />\r
+              <option name="myItemId" value="TCA" />\r
               <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
             </PATH_ELEMENT>\r
           </PATH>\r
               <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
             </PATH_ELEMENT>\r
             <PATH_ELEMENT>\r
-              <option name="myItemId" value="Configuration" />\r
+              <option name="myItemId" value="Classes" />\r
               <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
             </PATH_ELEMENT>\r
             <PATH_ELEMENT>\r
-              <option name="myItemId" value="TCA" />\r
+              <option name="myItemId" value="Utility" />\r
               <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
             </PATH_ELEMENT>\r
           </PATH>\r
       <created>1350398340012</created>\r
       <updated>1350398340012</updated>\r
     </task>\r
-    <option name="localTasksCounter" value="2" />\r
+    <task id="LOCAL-00002" summary="Working Copy">\r
+      <created>1350401058102</created>\r
+      <updated>1350401058102</updated>\r
+    </task>\r
+    <option name="localTasksCounter" value="3" />\r
     <servers />\r
   </component>\r
   <component name="ToolWindowManager">\r
     <frame x="1592" y="-262" width="1936" height="1096" extended-state="6" />\r
-    <editor active="false" />\r
+    <editor active="true" />\r
     <layout>\r
       <window_info id="Data Sources" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />\r
       <window_info id="File Transfer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32917964" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />\r
       <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />\r
       <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />\r
       <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />\r
-      <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.20917822" sideWeight="0.67082036" order="0" side_tool="false" content_ui="combo" />\r
+      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.20917822" sideWeight="0.67082036" order="0" side_tool="false" content_ui="combo" />\r
       <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />\r
       <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />\r
       <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />\r
         </state>\r
       </provider>\r
     </entry>\r
-    <entry file="file://$PROJECT_DIR$/Classes/Utility/FieldlistingBackend.php">\r
-      <provider selected="true" editor-type-id="text-editor">\r
-        <state line="43" column="18" selection-start="1538" selection-end="1538" vertical-scroll-proportion="0.39144737">\r
-          <folding>\r
-            <element signature="n#getFieldsets#0;n#Tx_PowermailCond_Utility_FieldlistingBackend#0;n#!!top" expanded="false" />\r
-            <element signature="n#valuesFromPowermailSelectbox#0;n#Tx_PowermailCond_Utility_FieldlistingBackend#0;n#!!top" expanded="false" />\r
-          </folding>\r
-        </state>\r
-      </provider>\r
-    </entry>\r
-    <entry file="file://D:/SVN/powermail@forge/ext_tables.sql">\r
-      <provider selected="true" editor-type-id="text-editor">\r
-        <state line="85" column="61" selection-start="2799" selection-end="2831" vertical-scroll-proportion="0.5618337">\r
-          <folding />\r
-        </state>\r
-      </provider>\r
-    </entry>\r
     <entry file="file://D:/SVN/powermail@forge/Configuration/TCA/Answers.php">\r
       <provider selected="true" editor-type-id="text-editor">\r
         <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">\r
         </state>\r
       </provider>\r
     </entry>\r
-    <entry file="file://$PROJECT_DIR$/ext_tables.sql">\r
-      <provider selected="true" editor-type-id="text-editor">\r
-        <state line="25" column="8" selection-start="850" selection-end="850" vertical-scroll-proportion="0.45309168">\r
-          <folding />\r
-        </state>\r
-      </provider>\r
-    </entry>\r
     <entry file="file://D:/SVN/powermail@forge/Configuration/FlexForms/flexform_pi1.xml">\r
       <provider selected="true" editor-type-id="text-editor">\r
         <state line="25" column="251" selection-start="735" selection-end="933" vertical-scroll-proportion="0.45945945">\r
         </state>\r
       </provider>\r
     </entry>\r
+    <entry file="file://$PROJECT_DIR$/Configuration/TCA/Condition.php">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="100" column="139" selection-start="3240" selection-end="3240" vertical-scroll-proportion="0.6429366">\r
+          <folding />\r
+        </state>\r
+      </provider>\r
+    </entry>\r
+    <entry file="file://D:/SVN/powermail@forge/ext_tables.sql">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="3" column="44" selection-start="79" selection-end="110" vertical-scroll-proportion="-0.054371003">\r
+          <folding />\r
+        </state>\r
+      </provider>\r
+    </entry>\r
     <entry file="file://$PROJECT_DIR$/Configuration/TCA/Rule.php">\r
       <provider selected="true" editor-type-id="text-editor">\r
-        <state line="0" column="5" selection-start="5" selection-end="5" vertical-scroll-proportion="-0.0567297">\r
+        <state line="43" column="35" selection-start="1404" selection-end="1422" vertical-scroll-proportion="-18.307692">\r
           <folding />\r
         </state>\r
       </provider>\r
     </entry>\r
-    <entry file="file://$PROJECT_DIR$/Configuration/TCA/Condition.php">\r
+    <entry file="file://$PROJECT_DIR$/ext_tables.sql">\r
       <provider selected="true" editor-type-id="text-editor">\r
-        <state line="100" column="139" selection-start="3240" selection-end="3240" vertical-scroll-proportion="0.6429366">\r
+        <state line="3" column="52" selection-start="87" selection-end="126" vertical-scroll-proportion="0.0">\r
           <folding />\r
         </state>\r
       </provider>\r
     </entry>\r
+    <entry file="file://$PROJECT_DIR$/Classes/Utility/FieldlistingBackend.php">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="65" column="32" selection-start="2522" selection-end="2522" vertical-scroll-proportion="0.70614034">\r
+          <folding>\r
+            <element signature="e#987#1189#0" expanded="false" />\r
+          </folding>\r
+        </state>\r
+      </provider>\r
+    </entry>\r
   </component>\r
 </project>\r
 \r
index d1906bb..ff20186 100644 (file)
@@ -40,28 +40,57 @@ class Tx_PowermailCond_Utility_FieldlistingBackend {
         * @return      void
         */
        public function getFieldname(&$params, $pObj) {
-               $where = '1 AND pid = ' . intval($params['row']['pid']) . ' AND hidden = 0 AND deleted = 0';
-               $where = '';
-               if (isset($params['config']['itemsProcFuncValue'])) { // additional where clause
-                       $where = 'formtype IN (' . $params['config']['itemsProcFuncValue'] . ')';
+               // settings
+               $formUid = intval($params['row']['form']);
+               if (!empty($params['row']['conditions'])) {
+                       $formUid = $this->getFormUidFromCondition($params['row']['conditions']);
                }
-               $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
-                       $select = 'uid, title',
-                       $from = 'tx_powermail_domain_model_fields',
-                       $where,
-                       $groupBy = '',
-                       $orderBy = 'sorting',
-                       $limit = ''
-               );
+
+               // query
+               $select = 'tx_powermail_domain_model_fields.uid, tx_powermail_domain_model_fields.title, tx_powermail_domain_model_fields.marker';
+               $from = '
+                       tx_powermail_domain_model_fields
+                       left join tx_powermail_domain_model_pages on tx_powermail_domain_model_fields.pages = tx_powermail_domain_model_pages.uid
+                       left join tx_powermail_domain_model_forms on tx_powermail_domain_model_pages.forms = tx_powermail_domain_model_forms.uid
+               ';
+               $where = 'tx_powermail_domain_model_fields.hidden = 0 AND tx_powermail_domain_model_fields.deleted = 0';
+               if ($formUid > 0) {
+                       $where .= ' AND tx_powermail_domain_model_forms.uid = ' . $formUid;
+               }
+               $groupBy = '';
+               $orderBy = 'tx_powermail_domain_model_fields.sorting';
+               $limit = 10000;
+               $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery($select, $from, $where, $groupBy, $orderBy, $limit);
                if ($res) {
+                       // Title for optgroup
                        $params['items'][] = array('powermail Fields', '--div--');
+
                        while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
-                               $params['items'][] = array($pObj->sL($row['title']) . ' (' . $row['uid'] . ')', $row['uid']);
+                               $params['items'][] = array(
+                                       $pObj->sL($row['title']) . ', {' . $row['marker'] . '}, uid' . $row['uid'],
+                                       $row['uid']
+                               );
                        }
                }
+       }
 
-               if (isset($params['config']['itemsProcFunc_addFieldsets'])) { // add fieldsets to selection
-                       $params['items'] = array_merge((array) $params['items'], $this->getFieldsets($params['row']['pid'])); // add some fieldsets
+       /**
+        * Get Form Uid from Rule
+        *
+        * @param int $conditionUid
+        * @return int formUid
+        */
+       private function getFormUidFromCondition($conditionUid) {
+               $select = 'form';
+               $from = 'tx_powermailcond_domain_model_condition';
+               $where = 'uid = ' . intval($conditionUid) . ' AND hidden = 0 AND deleted = 0';
+               $groupBy = '';
+               $orderBy = '';
+               $limit = 1;
+               $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery($select, $from, $where, $groupBy, $orderBy, $limit);
+               if ($res) {
+                       $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
+                       return $row['form'];
                }
        }
 
@@ -103,7 +132,7 @@ class Tx_PowermailCond_Utility_FieldlistingBackend {
         * @param       integer $pid: Page ID
         * @return      array   $arr: all fieldsets with its name and the fieldset uid
         */
-       public function getFieldsets($pid) {
+       public function oldGetFieldsets($pid) {
                $arr = array();
                $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
                        $select = 'uid, title',
@@ -129,7 +158,7 @@ class Tx_PowermailCond_Utility_FieldlistingBackend {
         * @param       object  $pObj: Parent Object
         * @return      void
         */
-       public function valuesFromPowermailSelectbox(&$params, $pObj) {
+       public function oldValuesFromPowermailSelectbox(&$params, $pObj) {
                // Get targetField UID
                $gParams = t3lib_div::_GET('edit');
                $gParams2 = $gParams['tx_powermailcond_conditions'];
index fc23906..7fb87cb 100644 (file)
@@ -40,7 +40,7 @@ $TCA['tx_powermailcond_domain_model_rule'] = array (
                                'items' => Array (
                                        Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.startField.I.0', '0'),
                                ),
-                               'itemsProcFunc' => 'tx_powermailcond_fields_be->fieldname',
+                               'itemsProcFunc' => 'Tx_PowermailCond_Utility_FieldlistingBackend->getFieldname',
                                'itemsProcFuncValue' => '"text","textarea","select","radio","check"', // allow only this types of fields in selector
                                'size' => 1,
                                'maxitems' => 1,