Skip to content

Commit

Permalink
Fixing inability to create new topic tree
Browse files Browse the repository at this point in the history
  • Loading branch information
aembler committed May 21, 2015
1 parent 0610245 commit c24ecd6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions web/concrete/attributes/topics/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
'treeID': '<?php echo $treeID ?>',
'treeNodeParentID': '<?php echo $parentNode ?>',
'chooseNodeInForm': 'multiple',
'allowFolderSelection': false,
'selectNodesByKey': [<?php echo $valueIDs ?>],
'selectMode': '2',
'noDrag' : true,
Expand Down
1 change: 0 additions & 1 deletion web/concrete/attributes/topics/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
$('.tree-view-template-<?=$attributeKey->getAttributeKeyID()?>').ccmtopicstree({ // run first time around to get default tree if new.
'treeID': <?php echo $tree->getTreeID(); ?>,
'chooseNodeInForm': true,
'allowFolderSelection': true,
'noDrag' : true,
<?php if($selectedNode) { ?>
'selectNodesByKey': [<?php echo $selectedNode ?>],
Expand Down
2 changes: 1 addition & 1 deletion web/concrete/js/build/core/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
readonly: false,
chooseNodeInForm: false,
onSelect: false,
allowFolderSelection: false,
allowFolderSelection: true,
selectNodesByKey: []
}, options);

Expand Down
1 change: 1 addition & 0 deletions web/concrete/tools/tree/node/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
if (is_object($node)) {
$np = new Permissions($node);
if ($np->canViewTreeNode()) {
$node->getTreeObject()->setRequest($_REQUEST);
$node->populateDirectChildrenOnly();
$r = array();
if(count($selected) > 0) {
Expand Down

0 comments on commit c24ecd6

Please sign in to comment.