From 2832c030649bb4d4f7178c6f58cb93f280706738 Mon Sep 17 00:00:00 2001 From: Betsy McPhail Date: Wed, 2 Nov 2016 12:33:28 -0400 Subject: [PATCH] Revert "License filters are no longer selected on start-up" --- controllers/components/TreeComponent.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/controllers/components/TreeComponent.php b/controllers/components/TreeComponent.php index 9b93741..117a52d 100755 --- a/controllers/components/TreeComponent.php +++ b/controllers/components/TreeComponent.php @@ -99,11 +99,11 @@ public function getAllTrees($includeDao = false, $selected = array(), $showFilte $none = OTJ_SOURCE_LICENSE_NOT_DEFINED; $trees[] = array('dao' => new stdClass(), 'select' => 0, 'title' => "License", 'key' => -1, 'children' => array( - array('dao' => new stdClass(), 'select' => 0, 'title' => "Apache 2", 'key' => "license-$apache2", + array('dao' => new stdClass(), 'select' => 1, 'title' => "Apache 2", 'key' => "license-$apache2", 'children' => array()), - array('dao' => new stdClass(), 'select' => 0, 'title' => "Public Domain", 'key' => "license-$public_domain", + array('dao' => new stdClass(), 'select' => 1, 'title' => "Public Domain", 'key' => "license-$public_domain", 'children' => array()), - array('dao' => new stdClass(), 'select' => 0, 'title' => "Other", 'key' => "license-$other", + array('dao' => new stdClass(), 'select' => 1, 'title' => "Other", 'key' => "license-$other", 'children' => array()), array('dao' => new stdClass(), 'select' => 0, 'title' => "GPL (Any Version)", 'key' => "license-$gpl", 'children' => array()), @@ -111,7 +111,7 @@ public function getAllTrees($includeDao = false, $selected = array(), $showFilte 'children' => array()), array('dao' => new stdClass(), 'select' => 0, 'title' => "BSD", 'key' => "license-$bsd", 'children' => array()), - array('dao' => new stdClass(), 'select' => 0, 'title' => "No License Specified", 'key' => "license-$none", + array('dao' => new stdClass(), 'select' => 1, 'title' => "No License Specified", 'key' => "license-$none", 'children' => array()) )); }