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:
@@ -63,6 +63,7 @@ class propelTable
|
|||||||
public $query;
|
public $query;
|
||||||
public $totPages;
|
public $totPages;
|
||||||
public $totRows;
|
public $totRows;
|
||||||
|
public $sortable = 'true';
|
||||||
|
|
||||||
//SQL QUERIES
|
//SQL QUERIES
|
||||||
public $criteria;
|
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
|
//Render headers
|
||||||
$this->colCount = 0;
|
$this->colCount = 0;
|
||||||
$this->shownFields = '[';
|
$this->shownFields = '[';
|
||||||
@@ -351,7 +343,7 @@ class propelTable
|
|||||||
|
|
||||||
if ($this->style[$r]['titleVisibility'] != '0') {
|
if ($this->style[$r]['titleVisibility'] != '0') {
|
||||||
$this->style[$r]['href'] = $this->ownerPage . '?order=' . ($sortOrder !== '' ? (G::createUID( '', $this->fields[$r]['Name'] ) . '=' . $sortOrder) : '') . '&page=' . $this->currentPage;
|
$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;';;
|
$this->style[$r]['onsort'] = $this->id . '.doSort("' . G::createUID( '', $this->fields[$r]['Name'] ) . '" , ""); return false;';;
|
||||||
} else {
|
} else {
|
||||||
$this->style[$r]['onsort'] = $this->id . '.doSort("' . G::createUID( '', $this->fields[$r]['Name'] ) . '" , "' . $sortOrder . '"); return false;';
|
$this->style[$r]['onsort'] = $this->id . '.doSort("' . G::createUID( '', $this->fields[$r]['Name'] ) . '" , "' . $sortOrder . '"); return false;';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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"/>
|
<STEP_UID type="hidden" showInTable="0"/>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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"/>
|
<STEP_UID type="hidden" showInTable="0"/>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user