Issue Bug Closed

#17669Drag&Drop icon should only be displayed when more than 1 IRRE record

Georg Ringer 10/11/07, 10:23 updated 10/02/18, 12:32

Description

The drag&drop icon appears also if there is just 1 record (in contrast to the up/down icons which work correctly)

a fix could work like this but has the problem that it only works after saving once, maybe Oliver you can do better! ;)
// Drag&Drop Sorting: Sortable handler for script.aculo.us
if ($permsEdit && $enableManualSorting && $config[‘appearance’][‘useSortable’] && strpos($config[‘appearance’][‘hide’],‘sort’)===false) {
$style = ($config[‘inline’][‘first’] == $config[‘inline’][‘last’]) ? ‘ style=“visibility: hidden;”’ : ‘’;
$cells[] = ‘backPath,‘gfx/move.gif’,‘width=“16” height=“16” hspace=“2”’.$style).’ title=”’.$GLOBALS[‘LANG’]->sL(‘LLL:EXT:lang/locallang_core.php:labels.move’,1).’” alt=”“ style=“cursor: move;” class=“sortableHandle” />’;
}

(issue imported from #M6498)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.