Commit f76adaf3db236d5dd55c3b94c6fdd818d267a1bc

Authored by Kevin G Fourie
1 parent 16fda31c

Merged MultiSelect "overridden" fieldset files.

plugins/multiselect/InetdocumentFieldsv2.php
1 <?php 1 <?php
  2 +
2 /** 3 /**
3 * $Id$ 4 * $Id$
4 * 5 *
@@ -6,31 +7,31 @@ @@ -6,31 +7,31 @@
6 * Document Management Made Simple 7 * Document Management Made Simple
7 * Copyright (C) 2008, 2009 KnowledgeTree Inc. 8 * Copyright (C) 2008, 2009 KnowledgeTree Inc.
8 * Portions copyright The Jam Warehouse Software (Pty) Limited 9 * Portions copyright The Jam Warehouse Software (Pty) Limited
9 - * 10 + *
10 * This program is free software; you can redistribute it and/or modify it under 11 * This program is free software; you can redistribute it and/or modify it under
11 * the terms of the GNU General Public License version 3 as published by the 12 * the terms of the GNU General Public License version 3 as published by the
12 * Free Software Foundation. 13 * Free Software Foundation.
13 - * 14 + *
14 * This program is distributed in the hope that it will be useful, but WITHOUT 15 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 16 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 17 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17 * details. 18 * details.
18 - * 19 + *
19 * You should have received a copy of the GNU General Public License 20 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <http://www.gnu.org/licenses/>. 21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 - *  
22 - * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, 22 + *
  23 + * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
23 * California 94120-7775, or email info@knowledgetree.com. 24 * California 94120-7775, or email info@knowledgetree.com.
24 - * 25 + *
25 * The interactive user interfaces in modified source and object code versions 26 * The interactive user interfaces in modified source and object code versions
26 * of this program must display Appropriate Legal Notices, as required under 27 * of this program must display Appropriate Legal Notices, as required under
27 * Section 5 of the GNU General Public License version 3. 28 * Section 5 of the GNU General Public License version 3.
28 - * 29 + *
29 * In accordance with Section 7(b) of the GNU General Public License version 3, 30 * In accordance with Section 7(b) of the GNU General Public License version 3,
30 * these Appropriate Legal Notices must retain the display of the "Powered by 31 * these Appropriate Legal Notices must retain the display of the "Powered by
31 - * KnowledgeTree" logo and retain the original copyright notice. If the display of the 32 + * KnowledgeTree" logo and retain the original copyright notice. If the display of the
32 * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices 33 * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
33 - * must display the words "Powered by KnowledgeTree" and retain the original 34 + * must display the words "Powered by KnowledgeTree" and retain the original
34 * copyright notice. 35 * copyright notice.
35 * Contributor( s): ______________________________________ 36 * Contributor( s): ______________________________________
36 * 37 *
@@ -45,7 +46,7 @@ class InetDocumentFieldDispatcher extends KTAdminDispatcher { @@ -45,7 +46,7 @@ class InetDocumentFieldDispatcher extends KTAdminDispatcher {
45 var $bAutomaticTransaction = true; 46 var $bAutomaticTransaction = true;
46 var $bHaveConditional = null; 47 var $bHaveConditional = null;
47 var $sHelpPage = 'ktcore/admin/document fieldsets.html'; 48 var $sHelpPage = 'ktcore/admin/document fieldsets.html';
48 - 49 +
49 /** 50 /**
50 * 51 *
51 * @return. 52 * @return.
@@ -83,7 +84,7 @@ class InetDocumentFieldDispatcher extends KTAdminDispatcher { @@ -83,7 +84,7 @@ class InetDocumentFieldDispatcher extends KTAdminDispatcher {
83 )); 84 ));
84 return $oTemplate; 85 return $oTemplate;
85 } 86 }
86 - 87 +
87 /** 88 /**
88 * form for creating new fieldset. 89 * form for creating new fieldset.
89 * @Param. 90 * @Param.
@@ -131,7 +132,7 @@ class InetDocumentFieldDispatcher extends KTAdminDispatcher { @@ -131,7 +132,7 @@ class InetDocumentFieldDispatcher extends KTAdminDispatcher {
131 $widgets[] = array('ktcore.widgets.selection', array( 132 $widgets[] = array('ktcore.widgets.selection', array(
132 'label' => _kt("Fieldset Type"), 133 'label' => _kt("Fieldset Type"),
133 'use_simple' => false, 134 'use_simple' => false,
134 - 'description' => _kt("It is possibler to create different types of fieldsets. The most common kind is a \"normal\" fieldset, which can be configured to have different kinds of fields. The administrator may have installed additional plugins which provide different types of fieldsets."), 135 + 'description' => _kt("It is possible to create different types of fieldsets. The most common kind is a \"normal\" fieldset, which can be configured to have different kinds of fields. The administrator may have installed additional plugins which provide different types of fieldsets."),
135 'important_description' => _kt('Note that it is not possible to convert between different types of fieldsets, so please choose carefully.'), 136 'important_description' => _kt('Note that it is not possible to convert between different types of fieldsets, so please choose carefully.'),
136 'name' => 'fieldset_type', 137 'name' => 'fieldset_type',
137 'required' => true, 138 'required' => true,
@@ -311,7 +312,6 @@ class InetDocumentFieldDispatcher extends KTAdminDispatcher { @@ -311,7 +312,6 @@ class InetDocumentFieldDispatcher extends KTAdminDispatcher {
311 * iNET Process 312 * iNET Process
312 */ 313 */
313 function do_edit() { 314 function do_edit() {
314 -  
315 // here we engage in some major evil. 315 // here we engage in some major evil.
316 // we check for the subevent var 316 // we check for the subevent var
317 // and subdispatch if appropriate. 317 // and subdispatch if appropriate.
@@ -334,8 +334,8 @@ class InetDocumentFieldDispatcher extends KTAdminDispatcher { @@ -334,8 +334,8 @@ class InetDocumentFieldDispatcher extends KTAdminDispatcher {
334 { 334 {
335 335
336 require_once(KT_DIR.'/plugins/ktcore/admin/fieldsets/basic.inc.php'); 336 require_once(KT_DIR.'/plugins/ktcore/admin/fieldsets/basic.inc.php');
337 - $oSubDispatcher = new BasicFieldsetManagementDispatcher;  
338 - } 337 + $oSubDispatcher = new BasicFieldsetManagementDispatcher;
  338 + }
339 // multiselect change end 339 // multiselect change end
340 340
341 341
@@ -477,9 +477,12 @@ class InetDocumentFieldDispatcher extends KTAdminDispatcher { @@ -477,9 +477,12 @@ class InetDocumentFieldDispatcher extends KTAdminDispatcher {
477 $data = $res['results']; 477 $data = $res['results'];
478 $errors = $res['errors']; 478 $errors = $res['errors'];
479 $extra_errors = array(); 479 $extra_errors = array();
  480 +
  481 + // check that the fieldset name either hasn't changed, or doesn't exist.
480 if ($data['name'] != $this->oFieldset->getName()) { 482 if ($data['name'] != $this->oFieldset->getName()) {
481 $oOldFieldset = KTFieldset::getByName($data['name']); 483 $oOldFieldset = KTFieldset::getByName($data['name']);
482 - if (!PEAR::isError($oOldFieldset)) { 484 + // If the fieldset exists throw an error. Mysql doesn't distinguish between and e so check the names are different in php.
  485 + if (!PEAR::isError($oOldFieldset) && $oOldFieldset->getName() == $data['name']) {
483 $extra_errors['name'][] = _kt("A fieldset with that name already exists."); 486 $extra_errors['name'][] = _kt("A fieldset with that name already exists.");
484 } 487 }
485 } 488 }
@@ -517,4 +520,4 @@ class InetDocumentFieldDispatcher extends KTAdminDispatcher { @@ -517,4 +520,4 @@ class InetDocumentFieldDispatcher extends KTAdminDispatcher {
517 } 520 }
518 } 521 }
519 522
520 -?>  
521 \ No newline at end of file 523 \ No newline at end of file
  524 +?>
plugins/multiselect/inetbasic.inc.php
1 <?php 1 <?php
  2 +
2 /** 3 /**
3 * $Id$ 4 * $Id$
4 * 5 *
@@ -6,31 +7,31 @@ @@ -6,31 +7,31 @@
6 * Document Management Made Simple 7 * Document Management Made Simple
7 * Copyright (C) 2008, 2009 KnowledgeTree Inc. 8 * Copyright (C) 2008, 2009 KnowledgeTree Inc.
8 * Portions copyright The Jam Warehouse Software (Pty) Limited 9 * Portions copyright The Jam Warehouse Software (Pty) Limited
9 - * 10 + *
10 * This program is free software; you can redistribute it and/or modify it under 11 * This program is free software; you can redistribute it and/or modify it under
11 * the terms of the GNU General Public License version 3 as published by the 12 * the terms of the GNU General Public License version 3 as published by the
12 * Free Software Foundation. 13 * Free Software Foundation.
13 - * 14 + *
14 * This program is distributed in the hope that it will be useful, but WITHOUT 15 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 16 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 17 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17 * details. 18 * details.
18 - * 19 + *
19 * You should have received a copy of the GNU General Public License 20 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <http://www.gnu.org/licenses/>. 21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 - *  
22 - * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, 22 + *
  23 + * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
23 * California 94120-7775, or email info@knowledgetree.com. 24 * California 94120-7775, or email info@knowledgetree.com.
24 - * 25 + *
25 * The interactive user interfaces in modified source and object code versions 26 * The interactive user interfaces in modified source and object code versions
26 * of this program must display Appropriate Legal Notices, as required under 27 * of this program must display Appropriate Legal Notices, as required under
27 * Section 5 of the GNU General Public License version 3. 28 * Section 5 of the GNU General Public License version 3.
28 - * 29 + *
29 * In accordance with Section 7(b) of the GNU General Public License version 3, 30 * In accordance with Section 7(b) of the GNU General Public License version 3,
30 * these Appropriate Legal Notices must retain the display of the "Powered by 31 * these Appropriate Legal Notices must retain the display of the "Powered by
31 - * KnowledgeTree" logo and retain the original copyright notice. If the display of the 32 + * KnowledgeTree" logo and retain the original copyright notice. If the display of the
32 * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices 33 * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
33 - * must display the words "Powered by KnowledgeTree" and retain the original 34 + * must display the words "Powered by KnowledgeTree" and retain the original
34 * copyright notice. 35 * copyright notice.
35 * Contributor( s): ______________________________________ 36 * Contributor( s): ______________________________________
36 * 37 *
@@ -46,7 +47,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher { @@ -46,7 +47,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher {
46 var $bAutomaticTransaction = true; 47 var $bAutomaticTransaction = true;
47 var $bHaveConditional = null; 48 var $bHaveConditional = null;
48 var $sHelpPage = 'ktcore/admin/document fieldsets.html'; 49 var $sHelpPage = 'ktcore/admin/document fieldsets.html';
49 - 50 +
50 /** 51 /**
51 * @param. 52 * @param.
52 * @return. 53 * @return.
@@ -93,7 +94,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher { @@ -93,7 +94,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher {
93 function do_main () { 94 function do_main () {
94 return _kt("Something very unexpected happened."); 95 return _kt("Something very unexpected happened.");
95 } 96 }
96 - 97 +
97 /** 98 /**
98 * returns array of field type. 99 * returns array of field type.
99 * 100 *
@@ -107,6 +108,8 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher { @@ -107,6 +108,8 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher {
107 'normal' => _kt("Normal (String)"), 108 'normal' => _kt("Normal (String)"),
108 'lookup' => _kt("Lookup"), 109 'lookup' => _kt("Lookup"),
109 'tree' => _kt("Tree"), 110 'tree' => _kt("Tree"),
  111 + 'largetextbox' => _kt("Large Text"),
  112 + 'date' => _kt("Date"),
110 'Multiselect' => _kt("Multiselect"), 113 'Multiselect' => _kt("Multiselect"),
111 ); 114 );
112 return $types; 115 return $types;
@@ -127,7 +130,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher { @@ -127,7 +130,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher {
127 ); 130 );
128 return $types; 131 return $types;
129 } 132 }
130 - 133 +
131 /** 134 /**
132 * returns lookup type 135 * returns lookup type
133 * @return string 136 * @return string
@@ -231,7 +234,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher { @@ -231,7 +234,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher {
231 234
232 return $oForm->render(); 235 return $oForm->render();
233 } 236 }
234 - 237 +
235 /** 238 /**
236 * Creats a new field->multiselect 239 * Creats a new field->multiselect
237 * @return 240 * @return
@@ -258,16 +261,26 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher { @@ -258,16 +261,26 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher {
258 261
259 $lookup = false; 262 $lookup = false;
260 $tree = false; 263 $tree = false;
  264 +
  265 + //$largeField = false;
  266 +
  267 + $DataType = 'STRING';
261 // multiselect change start 268 // multiselect change start
262 $inetlookup = false; 269 $inetlookup = false;
263 $inetlookupvalue = ''; 270 $inetlookupvalue = '';
264 // multiselect change end 271 // multiselect change end
265 - 272 +
266 if ($data['field_type'] == 'lookup') { 273 if ($data['field_type'] == 'lookup') {
267 $lookup = true; 274 $lookup = true;
268 } else if ($data['field_type'] == 'tree') { 275 } else if ($data['field_type'] == 'tree') {
269 $lookup = true; 276 $lookup = true;
270 $tree = true; 277 $tree = true;
  278 + } else if ($data['field_type'] == 'largetextbox') {
  279 + //$largeField = true;
  280 + $DataType = 'LARGE TEXT';
  281 + } else if ($data['field_type'] == 'date') {
  282 + //$largeField = true;
  283 + $DataType = 'DATE';
271 } 284 }
272 // multiselect change start 285 // multiselect change start
273 else if($data['field_type'] == 'Multiselect') 286 else if($data['field_type'] == 'Multiselect')
@@ -276,11 +289,11 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher { @@ -276,11 +289,11 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher {
276 $inetlookupvalue = $this->getDefaultLookupType(); 289 $inetlookupvalue = $this->getDefaultLookupType();
277 } 290 }
278 // multiselect change end 291 // multiselect change end
279 - 292 +
280 $oField = DocumentField::createFromArray(array( 293 $oField = DocumentField::createFromArray(array(
281 'Name' => $data['name'], 294 'Name' => $data['name'],
282 'Description' => $data['description'], 295 'Description' => $data['description'],
283 - 'DataType' => 'STRING', 296 + 'DataType' => $DataType,
284 'IsGeneric' => false, 297 'IsGeneric' => false,
285 'HasLookup' => $lookup, 298 'HasLookup' => $lookup,
286 'HasLookupTree' => $tree, 299 'HasLookupTree' => $tree,
@@ -434,6 +447,32 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher { @@ -434,6 +447,32 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher {
434 )); 447 ));
435 return $oTemplate->render(); 448 return $oTemplate->render();
436 } 449 }
  450 +
  451 + function do_updatelargetextoptions() {
  452 +
  453 + $this->oField = DocumentField::get(KTUtil::arrayGet($_REQUEST, 'fFieldId'));
  454 +
  455 + $oValues = KTUtil::arrayGet($_REQUEST, 'largefield');
  456 +
  457 + if($oValues['size'] != "")
  458 + $this->oField->setMaxLength($oValues['size']);
  459 +
  460 + $this->oField->setIsHTML($oValues['html']);
  461 + //$this->oField->setIsHTML(true);
  462 +
  463 + //$oValue = $this->oField->_fieldValues();
  464 + //$this->successRedirectTo('managefield',_kt("Field updated. -> ") . $this->oField->getMaxLength() . " -> " . $oValue['max_length']);
  465 +
  466 + //$this->successRedirectTo('managefield',_kt("Field updated. -> ") . $oValues['html']);
  467 +
  468 + $res = $this->oField->update();
  469 + if (PEAR::isError($res)) {
  470 + return $oForm->handleError(sprintf(_kt("Failed to update field: %s"), $res->getMessage()));
  471 + }
  472 +
  473 + $this->successRedirectTo('managefield',_kt("Field updated."));
  474 + }
  475 +
437 /** 476 /**
438 * Updates a field 477 * Updates a field
439 * @return. 478 * @return.
@@ -451,7 +490,8 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher { @@ -451,7 +490,8 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher {
451 // check that the field name either hasn't changed, or doesn't exist. 490 // check that the field name either hasn't changed, or doesn't exist.
452 if ($data['name'] != $this->oField->getName()) { 491 if ($data['name'] != $this->oField->getName()) {
453 $oOldField = DocumentField::getByFieldsetAndName($this->oFieldset, $data['name']); 492 $oOldField = DocumentField::getByFieldsetAndName($this->oFieldset, $data['name']);
454 - if (!PEAR::isError($oOldField)) { 493 + // If the field exists throw an error. Mysql doesn't distinguish between é and e so check the names are different in php.
  494 + if (!PEAR::isError($oOldField) && $oOldField->getName() == $data['name']) {
455 $extra_errors['name'] = _kt("That name is already in use in this fieldset. Please specify a unique name."); 495 $extra_errors['name'] = _kt("That name is already in use in this fieldset. Please specify a unique name.");
456 } 496 }
457 } 497 }
@@ -516,7 +556,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher { @@ -516,7 +556,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher {
516 556
517 return $oForm; 557 return $oForm;
518 } 558 }
519 - 559 +
520 /** 560 /**
521 * Add lookup values 561 * Add lookup values
522 * @return 562 * @return
@@ -729,7 +769,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher { @@ -729,7 +769,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher {
729 769
730 /** 770 /**
731 * Save the edited lookup values 771 * Save the edited lookup values
732 - * 772 + *
733 * @param. 773 * @param.
734 * @return. 774 * @return.
735 * 775 *
@@ -748,7 +788,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher { @@ -748,7 +788,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher {
748 if (PEAR::isError($oMetaData)) { 788 if (PEAR::isError($oMetaData)) {
749 $this->addErrorMessage(_kt('Invalid lookup selected').': '.$sValue); 789 $this->addErrorMessage(_kt('Invalid lookup selected').': '.$sValue);
750 continue; 790 continue;
751 - 791 + //$this->errorRedirectTo('managelookups', _kt('Invalid lookup selected'));
752 } 792 }
753 if(empty($sValue)){ 793 if(empty($sValue)){
754 $this->addErrorMessage(_kt('Lookup cannot be empty').': '.$oMetaData->getName()); 794 $this->addErrorMessage(_kt('Lookup cannot be empty').': '.$oMetaData->getName());
@@ -857,7 +897,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher { @@ -857,7 +897,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher {
857 897
858 // under here we do the subaction rendering. 898 // under here we do the subaction rendering.
859 // we do this so we don't have to do _very_ strange things with multiple actions. 899 // we do this so we don't have to do _very_ strange things with multiple actions.
860 - 900 + //$default->log->debug("Subaction: " . $subaction);
861 $fieldTree =& new MDTree(); 901 $fieldTree =& new MDTree();
862 $fieldTree->buildForField($oField->getId()); 902 $fieldTree->buildForField($oField->getId());
863 903
@@ -962,7 +1002,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher { @@ -962,7 +1002,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher {
962 $constructedTree->deleteNode($current_node); 1002 $constructedTree->deleteNode($current_node);
963 return true; 1003 return true;
964 } 1004 }
965 - 1005 +
966 /** 1006 /**
967 * 1007 *
968 * @param $constructedTree object 1008 * @param $constructedTree object
@@ -1002,7 +1042,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher { @@ -1002,7 +1042,7 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher {
1002 * This whole thing needs to replaced, as soon as I work out how 1042 * This whole thing needs to replaced, as soon as I work out how
1003 * to non-sucking Smarty recursion. 1043 * to non-sucking Smarty recursion.
1004 */ 1044 */
1005 - 1045 +
1006 /** 1046 /**
1007 * render to subnode of tree 1047 * render to subnode of tree
1008 * 1048 *
@@ -1066,13 +1106,13 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher { @@ -1066,13 +1106,13 @@ class InetBasicFieldsetManagementDispatcher extends KTAdminDispatcher {
1066 $treeStr .= ' (<a href="' . KTUtil::addQueryStringSelf($this->meldPersistQuery('current_node=0', 'managetree')) . '">' . _kt('attach keywords') . '</a>)'; 1106 $treeStr .= ' (<a href="' . KTUtil::addQueryStringSelf($this->meldPersistQuery('current_node=0', 'managetree')) . '">' . _kt('attach keywords') . '</a>)';
1067 $treeStr .= '<ul>'; 1107 $treeStr .= '<ul>';
1068 1108
1069 - 1109 + //$default->log->debug("EVILRENDER: " . print_r($treeToRender, true));
1070 foreach ($treeToRender->getRoot() as $node_id => $subtree_nodes) 1110 foreach ($treeToRender->getRoot() as $node_id => $subtree_nodes)
1071 { 1111 {
1072 - 1112 + //$default->log->debug("EVILRENDER: ".$node_id." => ".$subtree_nodes." (".($node_id === "leaves").")");
1073 // leaves are handled differently. 1113 // leaves are handled differently.
1074 if ($node_id !== "leaves") { 1114 if ($node_id !== "leaves") {
1075 - 1115 + // $default->log->debug("EVILRENDER: " . print_r($subtree_nodes, true));
1076 $treeStr .= '<li class="treenode active"><a class="pathnode" onclick="toggleElementClass(\'active\', this.parentNode);toggleElementClass(\'inactive\', this.parentNode);">' . $treeToRender->mapnodes[$subtree_nodes]->getName() . '</a>'; 1116 $treeStr .= '<li class="treenode active"><a class="pathnode" onclick="toggleElementClass(\'active\', this.parentNode);toggleElementClass(\'inactive\', this.parentNode);">' . $treeToRender->mapnodes[$subtree_nodes]->getName() . '</a>';
1077 $treeStr .= $this->_evilActionHelper($iFieldsetId, $iFieldId, false, $subtree_nodes); 1117 $treeStr .= $this->_evilActionHelper($iFieldsetId, $iFieldId, false, $subtree_nodes);
1078 $treeStr .= $this->_evilTreeRecursion($subtree_nodes, $treeToRender); 1118 $treeStr .= $this->_evilTreeRecursion($subtree_nodes, $treeToRender);