BUG 11075 Adicion de triggers: UP-DOWN no funciona SOLVED

- En la asignación de triggers a un Step, es difícil poder mover la posición de un trigger (en cualquiera de las opciones: Before, After, Before Assignment, Before Routing,etc)con el Down y Up.
- Added sortable attribute in propelTable.
This commit is contained in:
Hector Cortez
2013-04-05 10:50:03 -04:00
parent bb33e69c8a
commit 718c7e3929
3 changed files with 4 additions and 12 deletions

View File

@@ -63,6 +63,7 @@ class propelTable
public $query;
public $totPages;
public $totRows;
public $sortable = 'true';
//SQL QUERIES
public $criteria;
@@ -330,15 +331,6 @@ class propelTable
}
}
// triggers validation table
$tablesName = $this->criteria->getTables();
$triggerEditTable = false;
foreach ($tablesName as $table) {
if ($table == 'STEP_TRIGGER') {
$triggerEditTable = true;
}
}
//Render headers
$this->colCount = 0;
$this->shownFields = '[';
@@ -351,7 +343,7 @@ class propelTable
if ($this->style[$r]['titleVisibility'] != '0') {
$this->style[$r]['href'] = $this->ownerPage . '?order=' . ($sortOrder !== '' ? (G::createUID( '', $this->fields[$r]['Name'] ) . '=' . $sortOrder) : '') . '&page=' . $this->currentPage;
if ($triggerEditTable) {
if ($this->sortable == 'false') {
$this->style[$r]['onsort'] = $this->id . '.doSort("' . G::createUID( '', $this->fields[$r]['Name'] ) . '" , ""); return false;';;
} else {
$this->style[$r]['onsort'] = $this->id . '.doSort("' . G::createUID( '', $this->fields[$r]['Name'] ) . '" , "' . $sortOrder . '"); return false;';

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm sqlConnection="" menu="steps/triggersAfter_Options" width="100%" disableFooter="1" rowsPerPage="100">
<dynaForm sqlConnection="" menu="steps/triggersAfter_Options" width="100%" disableFooter="1" rowsPerPage="100" sortable="false" >
<STEP_UID type="hidden" showInTable="0"/>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm sqlConnection="" menu="steps/triggersBefore_Options" width="100%" disableFooter="1" rowsPerPage="100">
<dynaForm sqlConnection="" menu="steps/triggersBefore_Options" width="100%" disableFooter="1" rowsPerPage="100" sortable="false" >
<STEP_UID type="hidden" showInTable="0"/>