cakephp2-php8/lib/Cake
aread22 64bb74a7e8 Potential Fix for LightHouse Ticket #3936
I believe I found a fix for this issue. I am here at #CakeFest2013 and during the #HourOfContribution I ran across this issue.

Currently in CakePHP 2.4 on Line 1522 - 1524 you can see the following code:

@@@ php
if ($label) {
	$optTitle = $this->Html->useTag('label', $tagName, '', $optTitle);
}
@@@

The $label variable here the is the $label array passed into the input method in Sethathi example above. The problem is that the $label array is completely ignored and instead a label is created using the HtmlHelper->useTag method.

I have what I believe is a fix for this issue but it hasn't been extensively tested. I tested against Sethathi example in the ticket and it produced the correct result.

The fix is simple. We detect if an array is passed in and then send it to the FormHelper label method instead of the HtmlHelper useTag method. The FormHelper label methods accepts an options array, so we pass in the $label array.

This will probably need to be fixed for checkbox also

"ask":https://cakephp.lighthouseapp.com/users/235987 helped me with this fix
2013-09-01 20:56:44 -04:00
..
Cache Merge branch 'master' into 2.4 2013-08-24 21:50:02 -04:00
Config Update docs to reflect the routes that are actually connected. 2013-08-22 17:54:05 -04:00
Configure remove code, class names and paths from translation strings. 2013-08-21 00:05:53 +02:00
Console ConsoleInput::_canReadLine change from private -> protected 2013-09-01 17:15:51 -05:00
Controller Correct doc blocks for AuthComponent 2013-08-31 19:58:10 -07:00
Core remove code, class names and paths from translation strings. 2013-08-21 00:05:53 +02:00
Error correct doc blocks as per cs 2013-08-13 12:29:20 +02:00
Event Improved the DocBlocks and other code cleanup 2013-05-31 00:11:19 +02:00
I18n Strict checks for I18n::loadLocaleDefinition(). 2013-09-01 06:20:53 +02:00
Log Excluded method names from several tanslation strings 2013-08-16 13:42:28 +04:00
Model Remove the $state === 'after' condition. 2013-09-01 11:06:45 -07:00
Network Merge branch 'master' into 2.4 2013-08-18 23:10:08 -04:00
Routing Merge branch 'master' into 2.4 2013-08-18 23:10:08 -04:00
Test add scope for generateTreeList - resolves ticket 4028 2013-09-01 01:02:26 -07:00
TestSuite Pass Controller:$components config to mocked components 2013-08-19 10:33:16 +00:00
Utility Merge pull request #1588 from kimegede/caketime-docblock-update 2013-08-31 21:59:11 -07:00
View Potential Fix for LightHouse Ticket #3936 2013-09-01 20:56:44 -04:00
basics.php deprecate Controller::flash() and adjust some other deprecation messages. 2013-08-12 12:51:12 +02:00
bootstrap.php Renaming base url config keys and methods for better uniformity. 2013-08-01 00:44:36 +05:30
LICENSE.txt Formatted CSF address 2013-02-08 21:08:15 +09:00
VERSION.txt Update version number to 2.4.0 2013-08-30 16:03:49 -04:00