Project

General

Profile

Bug #24459 ยป em_fieldnames.diff

Administrator Admin, 2011-01-03 16:42

View differences:

res/js/em_components.js (working copy)
dataIndex: 'author'
}, {
type: 'list',
dataIndex: 'statevalue',
dataIndex: 'state',
options: [[0, 'alpha'], [1, 'beta'], [2, 'stable'], [3, 'experimental'], [4, 'test'], [5, 'obsolete'], [6, 'excludeFromUpdates'], [999, 'n/a']],
phpMode: true
}, {
type: 'list',
dataIndex: 'categoryvalue',
dataIndex: 'category',
options: [[0, 'be'], [1, 'module'], [2, 'fe'], [3, 'plugin'], [4, 'misc'], [5, 'services'], [6, 'templates'], [8, 'doc'], [9, 'example']],
phpMode: true
}, {
......
width: 70,
sortable: true,
hideable: true,
dataIndex: 'categoryvalue',
dataIndex: 'category',
renderer: function(value, metaData, record, rowIndex, colIndex, store) {
var cats = ['be', 'module', 'fe', 'plugin', 'misc', 'services', 'templates', '', 'doc', 'example'];
return cats[value];
......
resizable: false,
fixed: true,
hideable: true,
dataIndex:'statevalue',
dataIndex:'state',
renderer: function(value, metaData, record, rowIndex, colIndex, store){
metaData.css += 'state-' + record.data.state + ' ';
return record.data.state;
......
});
TYPO3.EM.ExtensionUploadWindow.superclass.constructor.call(this, config);
}
});
});
res/js/em_repositorylist.js (working copy)
{name:'install'},
{name:'title'},
{name:'extkey'},
{name:'categoryvalue'},
{name:'category'},
{name:'version'},
{name:'alldownloadcounter', type: 'int'},
{name:'statevalue'},
{name:'state'},
//{name:'state'},
{name:'icon'},
{name:'description'},
{name:'lastuploaddate'},
......
}
});
Ext.reg('remoteextlist', TYPO3.EM.RepositoryList);
Ext.reg('remoteextlist', TYPO3.EM.RepositoryList);
classes/connection/class.tx_em_connection_extdirectserver.php (working copy)
$list['results'][$key]['dependencies'] = unserialize($value['dependencies']);
$extPath = t3lib_div::strtolower($value['extkey']);
$list['results'][$key]['icon'] = '<img alt="" src="' . $mirrorUrl . $extPath{0} . '/' . $extPath{1} . '/' . $extPath . '_' . $value['version'] . '.gif" />';
$list['results'][$key]['statevalue'] = $value['state'];
$list['results'][$key]['state'] = $value['state'];
$list['results'][$key]['state'] = tx_em_Tools::getDefaultState(intval($value['state']));
$list['results'][$key]['categoryvalue'] = $value['category'];
$list['results'][$key]['category'] = $value['category'];
}
return array(
......
foreach ($filter as $value) {
switch ($value['data']['type']) {
case 'list':
if ($value['field'] === 'statevalue') {
if ($value['field'] === 'state') {
$where .= ' AND state IN(' . htmlspecialchars($value['data']['value']) . ')';
}
if ($value['field'] === 'categoryvalue') {
if ($value['field'] === 'category') {
$where .= ' AND category IN(' . htmlspecialchars($value['data']['value']) . ')';
}
break;
    (1-1/1)