diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php
index b444d431a4..e7df128729 100755
--- a/main/newscorm/learnpath.class.php
+++ b/main/newscorm/learnpath.class.php
@@ -7604,37 +7604,34 @@ class learnpath {
$return .= '
' . get_lang('Minimum') . ' | ';
$return .= '' . get_lang('Maximum') . ' | ';
$return .= '';
- //$return .= '';
- //$return .= '';
- //$return .= '';
- //$return .= '';
- //$return .= ' | | ';
- //$return .= '
';
-
- $sql = "
- SELECT *
- FROM " . $tbl_lp_item . "
- WHERE
- lp_id = " . $this->lp_id;
+
+ //Adding the none option to the prerequisites see http://www.chamilo.org/es/node/146
+ $return .= '';
+ $return .= '';
+ $return .= '';
+ $return .= '';
+ $return .= ' | | ';
+ $return .= '
';
+ $sql = "SELECT * FROM " . $tbl_lp_item . " WHERE lp_id = " . $this->lp_id;
$result = Database::query($sql);
$arrLP = array ();
while ($row = Database :: fetch_array($result)) {
$arrLP[] = array (
- 'id' => $row['id'],
- 'item_type' => $row['item_type'],
- 'title' => api_convert_encoding($row['title'], $charset, $this->encoding),
- 'ref' => $row['ref'],
- 'description' => $row['description'],
- 'parent_item_id' => $row['parent_item_id'],
- 'previous_item_id' => $row['previous_item_id'],
- 'next_item_id' => $row['next_item_id'],
- 'max_score' => $row['max_score'],
- 'min_score' => $row['min_score'],
- 'mastery_score' => $row['mastery_score'],
- 'prerequisite' => $row['prerequisite'],
- 'next_item_id' => $row['next_item_id'],
- 'display_order' => $row['display_order']
+ 'id' => $row['id'],
+ 'item_type' => $row['item_type'],
+ 'title' => api_convert_encoding($row['title'], $charset, $this->encoding),
+ 'ref' => $row['ref'],
+ 'description' => $row['description'],
+ 'parent_item_id' => $row['parent_item_id'],
+ 'previous_item_id' => $row['previous_item_id'],
+ 'next_item_id' => $row['next_item_id'],
+ 'max_score' => $row['max_score'],
+ 'min_score' => $row['min_score'],
+ 'mastery_score' => $row['mastery_score'],
+ 'prerequisite' => $row['prerequisite'],
+ 'next_item_id' => $row['next_item_id'],
+ 'display_order' => $row['display_order']
);
if ($row['ref'] == $preq_id) {
$preq_mastery = $row['mastery_score'];