Development

Changeset 1368

You must first sign up to be able to contribute.

Changeset 1368

Show
Ignore:
Timestamp:
05/15/06 12:44:36 (7 years ago)
Author:
fabien
Message:

fixed boolean problem in admin generator

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/data/generator/sfPropelAdmin/default/template/actions/actions.class.php

    r1353 r1368  
    155155    if (!$this->getRequest()->hasErrors() && $this->getRequest()->getFileSize('<?php echo $this->getSingularName() ?>[<?php echo $name ?>]')) 
    156156    { 
    157 <?php else: ?> 
     157<?php elseif ($type != CreoleTypes::BOOLEAN): ?> 
    158158    if (isset($<?php echo $this->getSingularName() ?>['<?php echo $name ?>'])) 
    159159    { 
     
    179179      } 
    180180<?php elseif ($type == CreoleTypes::BOOLEAN): ?> 
    181       $this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>(isset($<?php echo $this->getSingularName() ?>['<?php echo $name ?>']) ? $<?php echo $this->getSingularName() ?>['<?php echo $name ?>'] : 0); 
     181    $this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>(isset($<?php echo $this->getSingularName() ?>['<?php echo $name ?>']) ? $<?php echo $this->getSingularName() ?>['<?php echo $name ?>'] : 0); 
    182182<?php else: ?> 
    183183      $this-><?php echo $this->getSingularName() ?>->set<?php echo $column->getPhpName() ?>($<?php echo $this->getSingularName() ?>['<?php echo $name ?>']); 
    184184<?php endif; ?> 
    185     } 
     185<?php if ($type != CreoleTypes::BOOLEAN): ?> 
     186    } 
     187<?php endif; ?> 
    186188<?php if ($credentials): ?> 
    187189      } 
  • trunk/data/web/sf/css/sf_admin/main.css

    r1366 r1368  
    4444  margin: 8px 0; 
    4545  padding: 3px; 
    46   padding-left: 5px; 
     46  padding-left: 0px; 
    4747  color: #555; 
    4848  font-family: "Trebuchet MS", Arial, Verdana, sans-serif;