Merged in marcoAntonioNina/processmaker/BUG-14636 (pull request #777)

BUG-14636 New Functionality - To allow set index in tables IMPROVEMENT
This commit is contained in:
Julio Cesar Laura Avendaño
2014-09-12 12:35:23 -04:00
3 changed files with 9 additions and 3 deletions

View File

@@ -302,7 +302,7 @@ class PmTable
}
// define the Index attribute if it is defined
if ($column->field_index) {
if (isset($column->field_index) && $column->field_index) {
$columnNode->setAttribute( 'index', "true" );
$indexColumnNode = $this->dom->createElement( 'index-column' );
$indexColumnNode->setAttribute( 'name', $column->field_name );