Author: sid.gbf
Date: 2010-03-29 14:37:15 +0200 (Mon, 29 Mar 2010)
New Revision: 28862
Modified:
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/lib/helper/JavascriptAdminHelper.php
Log:
Modified:
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/lib/helper/JavascriptAdminHelper.php
===================================================================
---
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/lib/helper/JavascriptAdminHelper.php
2010-03-29 12:02:39 UTC (rev 28861)
+++
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/lib/helper/JavascriptAdminHelper.php
2010-03-29 12:37:15 UTC (rev 28862)
@@ -9,12 +9,10 @@
if($field->getWidget()->hasOption('choices') && $field->getValue()) {
$class = $field->getWidget()->getOption('model');
$value = Doctrine::getTable($class)->findOneBy('id', $field->getValue());
+ } else if($field->getWidget()->getOption('type') == 'checkbox') {
+ $value = ($field->getValue())?__('Sim'):__('Não');
} else if($field->getValue()) {
switch($field->getWidget()->getOption('type')) {
- case 'checkbox': {
- $value = ($field->getValue())?__('Sim'):__('Não');
- break;
- }
default: {
$value = $field->getValue();
break;
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.