[switchyard] r798 committed - Fixed a bug with the automatic generation of form field labels.

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 13, 2009, 9:45:56 AM10/13/09
to switchy...@googlegroups.com
Revision: 798
Author: intuiworx
Date: Tue Oct 13 06:45:29 2009
Log: Fixed a bug with the automatic generation of form field labels.
http://code.google.com/p/switchyard/source/detail?r=798

Modified:
/framework/trunk/app/core/SwitchYard_Form.class.php
/framework/trunk/index.php

=======================================
--- /framework/trunk/app/core/SwitchYard_Form.class.php Mon Oct 5 18:52:47
2009
+++ /framework/trunk/app/core/SwitchYard_Form.class.php Tue Oct 13 06:45:29
2009
@@ -135,10 +135,10 @@
$fld->setRequired(true);

// set the field label; either use the column name or any provided label
- if (isset($labels) and is_array($labels)) {
- $label = (isset($labels[$col['name']])) ? $labels[$col['name']] :
ucwords(strtolower(str_replace('_', ' ', $col['name']))) ;
- $fld->setLabel($label);
- }
+ $label = (isset($labels) and is_array($labels)) ?
+ $labels[$col['name']] :
+ ucwords(strtolower(str_replace('_', ' ', $col['name']))) ;
+ $fld->setLabel($label);

// set the field label class if there is one specified
if (isset($label_classes) and is_array($label_classes) and
$label_classes[$col['name']])
=======================================
--- /framework/trunk/index.php Mon Oct 5 18:52:47 2009
+++ /framework/trunk/index.php Tue Oct 13 06:45:29 2009
@@ -3,7 +3,7 @@
/**
* SwitchYard Master Controller Script
* @author Jeremy Clifton <j.cl...@4-8-4.com>
- * @version 3.1.9
+ * @version 3.1.10
* @copyright 2005-2009 4-8-4 Software Works, LLC
* @license BSD
*/
@@ -12,7 +12,7 @@
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED);
ini_set('display_errors', true);

-define('SY_VERSION', '3.1.9');
+define('SY_VERSION', '3.1.10');
require 'app/core/bootstrap.php';
SwitchYard::$router = new SwitchYard_Router();
SwitchYard::$router->dispatch();

Reply all
Reply to author
Forward
0 new messages