Permalink
Browse files

Fixed Bug #1018314 (Big problem with UI and enums Edit)

  • Loading branch information...
1 parent c2df6d2 commit 237e9bc91f8ed9045f407cc6d2342312287005b2 @davidroth davidroth committed Oct 27, 2012
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
No changes.
View
No changes.
@@ -22,7 +22,7 @@
<tr>
<?php $columnName = CHtml::encode($column->name); ?>
<td style="font-weight: bold;"><?php echo $columnName; ?></td>
- <td><?php echo $column->dbType; ?></td>
+ <td><?php echo strlen($column->dbType) > 50 ? substr($column->dbType, 0, 50) . "..." : $column->dbType ?></td>
<td>
<?php if(!in_array(DataType::getBaseType($column->dbType), array('set', 'enum')))
{ ?>
@@ -23,7 +23,7 @@
<?php foreach($row->getMetaData()->tableSchema->columns AS $column) { ?>
<tr>
<td><?php echo CHtml::encode($column->name); ?></td>
- <td><?php echo $column->dbType; ?></td>
+ <td><?php echo strlen($column->dbType) > 50 ? substr($column->dbType, 0, 50) . "..." : $column->dbType ?></td>
<td><?php echo CHtml::dropDownList('operator['.$column->name.']','', $operators); ?></td>
<td>
<?php #echo CHtml::activeTextField($row, $column->name, array('class'=>'text', 'tabIndex'=>$tabIndex)); ?>
@@ -68,7 +68,7 @@
<?php endif; ?>
</td>
<td>
- <?php echo $column->COLUMN_TYPE; ?>
+ <?php echo strlen($column->COLUMN_TYPE) > 50 ? substr($column->COLUMN_TYPE, 0, 50) . "..." : $column->COLUMN_TYPE ?>
</td>
<td>
<?php if(!is_null($column->COLLATION_NAME)) { ?>
View
0 protected/yiic 100755 → 100644
No changes.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 237e9bc

Please sign in to comment.