Ver código fonte

Lp item list: Allow all items to be moved using arrows BT#15967

Except the "final item".
Julio Montoya 5 anos atrás
pai
commit
a834f88421
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      main/lp/learnpath.class.php

+ 1 - 1
main/lp/learnpath.class.php

@@ -6438,7 +6438,7 @@ class learnpath
                     );
                     );
                 }
                 }
 
 
-                if (in_array($arrLP[$i]['item_type'], ['dir', 'document'])) {
+                if ($arrLP[$i]['item_type'] != 'final_item') {
                     /*if ($isFirst) {
                     /*if ($isFirst) {
                         $orderIcons = Display::url($disableUpIcon, '#', ['class' => 'btn btn-default']);
                         $orderIcons = Display::url($disableUpIcon, '#', ['class' => 'btn btn-default']);
                     } else {
                     } else {