Commit graph

2021 commits

Author SHA1 Message Date
gwoo
d83a705dc3 fixing acl shell
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5413 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 01:04:54 +00:00
phpnut
d2ed329e76 Adding fix for #2877, adds quit option in bake.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5412 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 23:48:05 +00:00
phpnut
f792004469 Adding fix for #2876, Missing {} on some string on tree behavior
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5411 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 23:43:27 +00:00
gwoo
3769fa796d updating auth, acl and tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5410 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 21:01:31 +00:00
gwoo
e746fedf45 closes #2754, fix for project task
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5409 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 19:33:20 +00:00
phpnut
c9eb45232d Adding fix for #2836, PaginatorHelper::numbers() outputting extra url params
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5408 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 18:28:41 +00:00
phpnut
d6bf52dce7 Adding fix from #2872, $ajax->afterRender() has no decoding
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5407 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 18:06:44 +00:00
phpnut
5bc14621ca Adding fix for #2683, $_SERVER['SCRIPT_FILENAME'] not available in some installations of IIS
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5405 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 17:41:33 +00:00
phpnut
6a750aa176 Removing else statement in last commit [5403]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5404 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 17:20:45 +00:00
phpnut
75b1e901c0 Adding fix for #2863, When trying to load not existing helper file, loadHelper() returns true
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5403 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 17:17:44 +00:00
phpnut
f7dbc8a256 Adding fix for #2757, acl shell view command broken
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5402 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 04:12:52 +00:00
phpnut
a0a0a4a718 Adding fix for #2752, acl shell creates invalid sql
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5401 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 03:38:07 +00:00
phpnut
7e14187bc7 Adding fix for #2776, ACL Shell should not accept / as an alias
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5400 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 03:15:26 +00:00
phpnut
7e3b4dfd84 Adding fix for #2753, db_acl.php doesn't respect Dbo alias property
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5399 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 03:09:06 +00:00
phpnut
1963c3b501 Removing code left from testing
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5398 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 02:53:23 +00:00
phpnut
8229587cfe Adding fix for #2837, dbo_source looping bug on parsing fields, can't use database function
Added test for #2837

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5397 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 02:29:37 +00:00
phpnut
b2805cff95 Skipping EmailTest::testBadSmtpSend() and EmailTest::testSmtpSend() if suite can not connect to smtp
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5396 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 02:03:52 +00:00
gwoo
16332140bf updating most tests with fixes to coding standards
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5395 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 01:17:57 +00:00
gwoo
8b104c6502 updating Auth test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5394 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 01:01:16 +00:00
phpnut
7e6ac60eeb Adding fix for 2691, Error caching xml files
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5393 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 00:50:15 +00:00
gwoo
25558fbd33 updating Auth test with AuthUser and fixture
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5392 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 00:49:36 +00:00
gwoo
e0d8449b8a updating Auth test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5391 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 00:43:45 +00:00
phpnut
e9f82f203e Adding fix for #2822, FileEngine : Escape special chars before write cache
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5390 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 00:34:22 +00:00
phpnut
360f00becf Adding fix for #2105, Email Component template should default to null?
Adding fix for #2196, allow creation of user defined headers in email component.
Adding fix for #2215, EmailComponent header injection protection and cleaning.
Adding fix for #2717, EmailComponent should account for SAFE_MODE restriction on php mail function.
Adding fix for #2855, EmailComponent methods and parameters (to, subject, message, from etc.) should be email injection safe
Adding fix for #2859, EmailComponent does not send email when adding cc: and bcc:

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5389 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-07 23:33:22 +00:00
nate
8976f07acf Adding fix for 'after' value not being rendered in FormHelper::input() (Ticket #2860)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5388 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-07 23:30:40 +00:00
chartjes
d8c0c67e2b Incomplete test for Auth component, committing so gwoo can work on it
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5387 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-07 21:24:21 +00:00
gwoo
cd42f6d8e2 #2871, fixing mode in Folder
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5386 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-07 19:30:34 +00:00
phpnut
2a38655bd0 Adding fix for #2862, fixes view::render() affect the layout of the main view
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5385 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-07 18:13:05 +00:00
phpnut
cedf6993b2 Adding fix for #2869, fixes count function not escaping "count" properly in pgsql
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5384 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-06 17:19:59 +00:00
phpnut
558c6eb00a Adding fix for #2866, fixes print_r() missing second parameter in object.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5383 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-06 17:08:44 +00:00
phpnut
aca00e47c8 Fixed Inflector bug #2061
Added tests to InflectorTest

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5382 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-06 07:06:06 +00:00
phpnut
fd787a9b74 Added fix for #2824, fixes Empty elements when DISABLE_CACHE is set to true
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5381 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-06 05:14:19 +00:00
phpnut
2eadf55e84 Adding patch from [2843], fixes Logging only writes to error.log
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5380 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-06 04:51:13 +00:00
phpnut
fb0a327a38 Adding fix for #2823, fixes Element gets different instances of helper than view in PHP4 and PHP5
Removed HtmlHelperTest::testRadio(), the HtmlHelper::radio() has been deprecated

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5379 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-06 04:31:45 +00:00
phpnut
4ff21a6a08 Adding deprecated notice to HtmlHelper::radio() this has been replaced with FormHelper::radio() since [5338]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5378 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-06 03:47:35 +00:00
gwoo
9cd8a79ad9 adding support for passing model name to model task, updated isMobile check in requestHandler
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5377 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-05 08:50:56 +00:00
gwoo
bd673fbaf4 fixing scaffold templates altrow css
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5376 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-02 23:45:08 +00:00
nate
77950dc608 Addind iPhone detection to RequestHandlerComponent::isMobile()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5375 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-02 22:20:58 +00:00
phpnut
072ed9581f Adding fix for failing tests on php 5
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5374 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-02 21:27:20 +00:00
phpnut
3880f9ce13 Refactoring Set::reverse() and Model::set()
Set::reverse() will now reverse the object to an array that was created in Set::map();
Added testMapReverse() to Set tests.
Removed code in Model::set() that was no longer needed

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5373 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-02 18:36:49 +00:00
phpnut
382a63651d Updating Set::reverse()
Corrected undefined variable

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5372 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-02 17:13:35 +00:00
mariano.iglesias
cd09a7c7dd Adding option to group elements in Set::combine and making Model::generateList use Set::combine. Adding tests for Model::generateList and more tests for Set::combine
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5370 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-01 03:43:05 +00:00
mariano.iglesias
61df674db5 Adding Set::combine to allow mapping of keys and values of an array using paths
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5369 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-30 22:34:47 +00:00
phpnut
5e2b574e2f Refactoring Model::set()
Added Set::reverse(0 to convert an object to an array

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5368 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-30 06:52:39 +00:00
mariano.iglesias
da2988a22b Improving HABTM saving by getting rid of unneeded loop and escaping field names
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5367 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-28 17:31:26 +00:00
phpnut
2e54eb1706 Refactoring the Model::_ _saveMulti() to use one INSERT statement instead of looping over each value and querying INSERT.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5366 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-28 06:46:26 +00:00
mariano.iglesias
2c7f16d1f1 Adding tests for HABTM saving when parent data comes after HABTM data
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5365 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-28 03:36:54 +00:00
mariano.iglesias
add4f3a961 Adding tests for HABTM saving, including saving HABTM data without any parent data
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5364 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-28 03:27:47 +00:00
phpnut
2da6ed2d7a Adding enhancement to allow saving habtm data without needing to update or save a parent record
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5363 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-28 02:47:16 +00:00
mariano.iglesias
36e207fa1f Adding tests for del and deleteAll in Model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5362 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 19:16:11 +00:00
nate
588ab18197 Adding aliasing fix for DboSource::delete() and Model::deleteAll() (Ticket #2735)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5361 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 19:13:44 +00:00
gwoo
c405d3ad6b fix Paginator::numbers() seperator: #2685
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5360 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 15:53:38 +00:00
gwoo
642b45a008 fix Paginator::numbers() seperator: #2685
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5359 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 15:49:30 +00:00
gwoo
f757103dbe adding test for form checkbox: #2785
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5358 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 15:37:51 +00:00
chartjes
6dc87a01e9 Added explanation to test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5357 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 15:37:12 +00:00
gwoo
c00238ec3a adding test for paginator numbers to prove fix for #2825
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5356 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 15:25:37 +00:00
gwoo
f3b67a24e1 adding fix for paginator numbers: #2825
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5355 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 15:20:56 +00:00
chartjes
3755a14f54 Added in test to make sure that an SMTP server is running on port 25 on localhost
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5354 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 15:20:45 +00:00
chartjes
d1f6f2339e Refactored SMTP send code, cleaned up tests. Test requires local SMTP server that is working
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5353 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 15:12:48 +00:00
gwoo
4573cf0796 adding fix for bake form template: #2834
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5352 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 14:55:13 +00:00
chartjes
15da6d1255 Added code to allow Email compoenent to send email via SMTP, along with test for component
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5351 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-26 20:29:38 +00:00
phpnut
3f25e0c44d Adding DboSource::value() to findCount() to wrap the count in dbo specific quoting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5350 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-26 19:02:10 +00:00
dho
126fac4145 Typo (ticket #2829)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5349 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-26 06:00:50 +00:00
phpnut
40a47a5e90 Correcting session errors in EmailTest test case
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5348 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-26 04:28:24 +00:00
chartjes
32ac42c055 Added in test for smtp functionality for email component, test not complete
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5347 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-25 21:18:18 +00:00
chartjes
5913b5d21e Added in support for sending code out via SMTP
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5346 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-25 21:17:09 +00:00
mariano.iglesias
6adef29257 Adding a couple of tests to ensure proper parsing of GROUP BY queries
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5345 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-25 14:48:20 +00:00
phpnut
9ba943ed6b Adding Router::reload() to setUp() in tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5344 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-23 08:40:52 +00:00
phpnut
51aa81f336 Adding fix for Ticket #2821, fixes Controller::postConditions() overrides $data passed in.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5343 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-23 08:24:26 +00:00
phpnut
905549cc89 Adding fix for Ticket #2819, fixes postgrsql schema problems when setting 'schema' => '"some_shcema"'; in database settings
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5342 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-23 07:57:18 +00:00
phpnut
65cdc377a6 Correcting duplicate class defines in the test cases that was causing tests to fail.
Added Router::reload(); to ViewTest::setUp()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5341 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-23 07:44:39 +00:00
phpnut
90299c0d0e Removed extra slash in test paths.
Removed extra lines in files.
Corrected header in file

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5340 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-23 05:56:36 +00:00
phpnut
4a9748e7f5 Refactoring FileEngine cache class
Refactoring Folder class

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5339 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-23 04:48:29 +00:00
phpnut
a08f18c4a1 Adding patch from Ticket #2817, Allow type radio in FormHelper::input()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5338 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-23 04:25:37 +00:00
phpnut
b7ba57c8b1 Fixing TreeBehavior so tests will work on php 4.
Removing _ _METHOD_ _ from files since it is not valid on php 4

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5337 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-23 04:16:33 +00:00
phpnut
15c8d5012e adding CakeTestModel::cacheSources = false;
corrected the class that models defined in tree.test.php extend

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5336 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-22 21:02:46 +00:00
phpnut
50aca85cc9 Adding fix for Ticket #2812
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5335 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-22 20:36:05 +00:00
phpnut
f72cdb6670 Adding fix for Ticket #2561
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5334 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-22 18:00:55 +00:00
phpnut
82ba2fa716 Fixing bug when using Security component and a form has a hidden field, similar to those use by FormHelper::checkbox()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5333 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-22 06:19:19 +00:00
phpnut
f29f6f99e6 Adding fix for duplicated hidden tag for fields token
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5332 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-22 06:10:27 +00:00
phpnut
ff01b3a031 Adding enhancement and tests from #2159
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5331 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-22 05:01:39 +00:00
phpnut
bf5fc48087 Adding patch from #2791
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5330 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-22 04:13:29 +00:00
phpnut
03ea2b8287 Adding fix for Router::url() when static call is made outside of an object instance
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5329 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-22 01:25:35 +00:00
phpnut
4b2e8dffe3 Adding fix for Ticket #2719, Paginator::numbers() not accepting $options like the prev() and next()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5328 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-21 18:38:15 +00:00
phpnut
364f3f4ff6 Adding fixes for:
Ticket #2805, fixes Blacklisting fields in FormHelper::inputs doesn't work like intended
Ticket #2806, adds FormHelper::inputs can work recursively on $fields
Merged changes from [5326]

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5327 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-21 18:02:56 +00:00
mariano.iglesias
ceaae130a1 Fixing issue with DELETE statement and alias not being properly created
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5326 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-21 17:53:20 +00:00
mariano.iglesias
496e97aaec Fixing issue #2810, AjaxHelper does not render boolean options properly, and adding tests for it
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5325 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-21 16:24:13 +00:00
mariano.iglesias
97a10184f3 Fixing issue #2713, NumberHelper does not handle some currency formatting very well
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5324 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-21 16:01:11 +00:00
mariano.iglesias
b870ea170c Fixing issue #2735, deleteAll() does not work correctly with model aliases
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5323 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-21 15:40:03 +00:00
phpnut
172f9817cb Fixing console scripts.
Correcting errors when using bake shell to create views.
Corrected errors when interactively creating controllers and views
Corrected issue in ProjectTask::cakeAdmin() with admin route not writing the admin define in core.php
Moved ControllerTask::getAdmin() to Shell::getAdmin()
Removed define setting CAKE_ADMIN to null which would cause issues with admin methods and views
Corrected missing ?>

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5322 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-21 14:38:46 +00:00
phpnut
9d56c4616e Adding fix for Ticket #2809, fixes Add / Edit scaffolding : Template is always 'edit' instead of $action
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5321 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-21 14:20:21 +00:00
phpnut
cbbf006bd6 Adding fix for:
Ticket #1303, fixes On HABTM save() the associated field 'id' must be first in $this->params
Ticket #1819, fixes save() for HABTM to allow array keys in any order.
Ticket #2762, fixes Model::save() for HABTM not saving if no data from the parent Model is present

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5320 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-21 13:53:51 +00:00
phpnut
85492fba92 Adding fix for Ticket #2750, fixes rendering of links when requestAction() is used.
Router::url() replaced $_this with $this which is an instance of the class from which the method is called, in the case of this ticket it was an instance of the HtmlHelper

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5319 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-21 06:47:57 +00:00
phpnut
52c2591055 Merging fixes and enhancements into the trunk:
Revision: [5316]
 * Adding correct fix for Ticket #2775

Revision: [5315]
 * Correcting code structure to standards

Revision: [5314]
 * Correcting class method names

Revision: [5313]
 * Correcting code structure to standards

Revision: [5312]
 * Adding fix for Ticket #2786, fixes form dateTime helper does not set year to current

Revision: [5311]
 * Adding fix for Ticket #2792, fixes AuthComponent: Blank password at user login generates SQL error

Revision: [5310]
 * Adding fix for Ticket #2795, fixes hidden field for checkbox.
 * Updated FormHelperTest::testCheckboxField() to reflect the correct return value

Revision: [5309]
 * Adding fix for Ticket #2799, default error message should be i18n

Revision: [5308]
 * Adding fix for Ticket #2737, changed TRUNCATE to TRUNCATE TABLE

Revision: [5307]
 * Adding patch from Ticket #2642, fixes TranslateBehavior doesn't work with Model::saveField()

Revision: [5306]
 * Adding fix for Ticket #2773, fixes Security Component requireAuth

Revision: [5305]
 * Adding fix for Ticket #2798, fixes Hidden field causes undefined Index warning in Security Component

Revision: [5304]
 * Adding ability to read cookies in the Controller::beforeFilter()

Revision: [5303]
 * Adding fix for Ticket #2635, fixes Association data not correct if data is changed in afterFind()

Revision: [5302]
 * Adding fix for Ticket #2736, fixes Core testing broken when libraries are relocated

Revision: [5301]
 * Adding basic description to Acl shell class

Revision: [5300]
 * Adding documentation for Acl shell and internationalizing messages

Revision: [5299]
 * Adding documentation for ErrorHandler in Cake console and internationalizing error messages

Revision: [5298]
 * Adding documentation for Cake console dispatcher

Revision: [5297]
 * Adding documentation for Dispatcher

Revision: [5296]
 * Adding documentation for CakePHP basic functions

Revision: [5295]
 * Fixing translations function typo

Revision: [5294]
 * Adding loadPluginModels back to dispatcher until I fix issue with loading associated plugin models.
 * Corrected form.ctp template parse error

Revision: [5293]
 * Replacing "&&" by "AND" (ticket #2784)

Revision: [5292]
 * Fixing forced empty element selection in FormHelper::select() (Ticket #2749)

Revision: [5291]
 * Fixing double merging of URL parameters in PaginatorHelper::sort() (Ticket #2692)

Revision: [5290]
 * Fixing typo (ticket #2779)

Revision: [5289]
 * Adding fix for Ticket #2775, fixes $this->here shows incorrect value for admin route

Revision: [5288]
 * Adding fix for Ticket #2714, fixes requestAction not working properly

Revision: [5287]
 * Rolling back DboSource changes from 1.2 to 1.1

Revision: [5286]
 * Adding fix for Ticket #2738, fixes Nesting level too deep error when writing object in CakeSession in php 5.2+

Revision: [5285]
 * Refactoring DboSource::__quoteFields() and improving support for mixed string and array conditions

Revision: [5284]
 * Adding fix for #2651, fixes query creation problem in DboAdodb

Revision: [5283]
 * Adding patch from #2652 fixes SQLite LIMIT statement broken

Revision: [5281]
 * fix bake index template

Revision: [5280]
 * updating bake templates for i18n, fixes for scaffold templates

Revision: [5279]
 * fix for scaffold without CAKE_ADMIN

Revision: [5278]
 * Applying patch from ticket #2763, adding test for it

Revision: [5277]
 * Refactored Scaffold: deprecated generateFieldNames, aligned scaffold and bake view templates, set var $scaffold = CAKE_ADMIN; will scaffold only the admin actions

Revision: [5276]
 * Adding test to disprove ticket #2763

Revision: [5275]
 * Removing localization code from core-not-found error

Revision: [5274]
 * Fixing substring quoting in DboSource::__quoteFields()

Revision: [5273]
 * updating Acl, should fix #2733

Revision: [5272]
 * changing Model::create to use Set::filter

Revision: [5271]
 * updating acl shell

Revision: [5270]
 * updating headers

Revision: [5269]
 * Fixing path in help text

Revision: [5268]
 * updating bake cake admin define

Revision: [5267]
 * Adding query conditions parenthesis fix for Ticket #2663

Revision: [5266]
 * updating bake view templates

Revision: [5265]
 * update to formhelper habtm fields

Revision: [5264]
 * updating help for bake

Revision: [5263]
 * refactoring task loading

Revision: [5262]
 * Adding fix for #2723, this fixes Saving an array in an encrypted cookie, with the CookieComponent, prevents you from deleting it later.
 * Adding fix for #2667 move the CookieComponent::startup() implementation to CookieComponent::initialize().
 * Deprecated the use of the Controller properties to set the CookieComponent properties

Revision: [5261]
 * Updating doc strings with clarified instructions.

Revision: [5259]
 * udpated view to work with form helper

Revision: [5258]
 * fixing form helper for tickets #2726 and #2659, updated tests.

Revision: [5257]
 * Adding fix for #2640, fixes nested array issues with Router::stripEscape()

Revision: [5256]
 * Initializing tasks before execution (ticket #2725)

Revision: [5255]
 * Adding documentation for Component

Revision: [5254]
 * Adding fix for #2691, fixes error caching xml files

Revision: [5253]
 * Adding fix for #2650, fixes alias in DboAdodb::fields()

Revision: [5252]
 * Adding fix for #2689, fixes issue when using FormHelper::submitImage with Security Component enabled

Revision: [5251]
 * Adding fix for #2648, fixes issue with token not being regenerated 

Revision: [5250]
 * Adding fix for undefined variable in Controller::cleanUpFields()

Revision: [5249]
 * updating view task and view template

Revision: [5248]
 * Enabling custom pagination methods in model

Revision: [5247]
 * Fixing problem when baking only admin functions

Revision: [5246]
 * Fixing typo

Revision: [5245]
 * Using $connection param when cleaning arrays (ticket #2712)

Revision: [5244]
 * updating view task and view template

Revision: [5243]
 * #2672: fixed model task unit test baking

Revision: [5242]
 * fixing missing passedArgs member in controller that was not committed in [5228], fixing cleanUpFields to not set a default time or date.

Revision: [5241]
 * fixing extra ; in bake form template

Revision: [5240]
 * fixing arg shifting in shells for php4

Revision: [5239]
 * updating shells with startup callback, so a shell initializes, then loads tasks, then starts up, Tasks are the same. few other minor fixes to bake, api and acl.

Revision: [5238]
 * Adding fix for FormHelper::checkbox() not creating the hidden fields.
 * Corrected errors when multiple hidden fields used in a form.
 * Fixed SecurityComponent::_ _validatePost() that would invalidate a form when checkboxes used.

Revision: [5237]
 * updating view task and adding view task templates

Revision: [5236]
 * updating dbconfig, project, model, and controller tasks

Revision: [5235]
 * updating main shell class and dispatcher

Revision: [5234]
 * Adding fixtures for afterFind() test

Revision: [5233]
 * Adding test case for Model::findAll() results modified in afterFind (disproves Ticket #2635)

Revision: [5232]
 * Fixing bug introduced in [5228].

Revision: [5231]
 * Adding changes to Controller::set() to force $camelBacked variables only if second params is null

Revision: [5230]
 * Adding change to Controller::set() to force variable to $camelBacked

Revision: [5229]
 * Fixing issue with bad key set in Controller::generateFieldNames() causing HABTM not to save

Revision: [5228]
 * fixing missing passedArgs member in controller

Revision: [5227]
 * adding pass to the default set of router params

Revision: [5226]
 * Fixing typo (ticket #2674)

Revision: [5225]
 * Added "Model columns" command to get a list of columns and column type for a model

Revision: [5224]
 * Correcting date string in tests

Revision: [5223]
 * fixing File again adding info property

Revision: [5222]
 * Adding fix for #2657, fixes form with Textarea does not save when Security Component is enabled

Revision: [5221]
 * fixing File tests and class

Revision: [5220]
 * Added in more verbose output of Model->save() functionality

Revision: [5219]
 * Added in Model->save() method along with help text explaining how to use it

Revision: [5218]
 * Correcting loading of plugin view classes

Revision: [5217]
 * updating acl and model cli

Revision: [5216]
 * Removed "protected" declaration from a function...PHP 5 only

Revision: [5215]
 * Added in dynamic unbinding, verification of existing models, verification of existing associations, added in help text and reorganized code in swich-case block now that I figured out you could put preg_matches in a case statement :) 

Revision: [5214]
 * fixing typo in cleanUpfields

Revision: [5213]
 * Changing Helper::_ _value(); to Helper::value();
 * Removed HtmlHelper::value();
 * Changed all references to _ _value() to value();
 * Started changes needed for loading custom view classes located in a plugin

Revision: [5212]
 * updating project task paths

Revision: [5211]
 * updating File class and tests

Revision: [5209]
 * Finishing vendors function to allow loading of plugin vendors files

Revision: [5208]
 * Allowing spaces in session keys (Ticket #2639)

Revision: [5207]
 * Implementing lazy loading of plugin models

Revision: [5206]
 * fixing typo

Revision: [5205]
 * adding check to previous cleanUpFields fix

Revision: [5204]
 * updating cleanUpFields in 1.2 and 1.2 for #2632

Revision: [5203]
 * updating file class deprecated getters, fixes for tickets #1838 and #2641, adding tests, changing Folder default directory to TMP

Revision: [5202]
 * Moving loading of plugins controller to use loadController()

Revision: [5201]
 * Adding documentation for Socket, Validation and Xml

Revision: [5200]
 * Adding comments to Set

Revision: [5199]
 * Fixing docs for Session

Revision: [5198]
 * Formatting

Revision: [5197]
 * Starting code changes to allow dot notation for loading of all classes

Revision: [5196]
 * Refactoring tasks

Revision: [5195]
 * Fixing problem with handling "0" in NumberHelper::toReadableSize() (ticket #2654)

Revision: [5194]
 * Adding comments for Sanitize and Security

Revision: [5193]
 * Adding comments for Router

Revision: [5192]
 * Adding missing accessors

Revision: [5191]
 * Adding documentation for Overloadable in both PHP versions

Revision: [5190]
 * removing whitespace

Revision: [5189]
 * fixing bug in paths of shell well accessing php cli through cake.php

Revision: [5188]
 * minor enhancements like sorting in api shell

Revision: [5187]
 * Added message when no result set is found

Revision: [5186]
 * Made changes to properly parse output of find() and findAll()...but I don't like how it's doing it, have to find a more elegant solution later

Revision: [5184]
 * moving beforeRender to before loadView

Revision: [5183]
 * Added code to handle outputting associations like hasMany properly

Revision: [5182]
 * Adding fix for #2637, fixes issue with Router::stripEscape() corrupting boolean values

Revision: [5181]
 * updating formHelper for #1035 adding more tests, fixing some tags the would produce spaces

Revision: [5180]
 * fixing FormHelper::month to use the comment from ticket #700

Revision: [5179]
 * fixing bad tests in socket and some working in error messages

Revision: [5178]
 * adding strfrotime to FormHelper::month #700, fix to radios which still need to be moved

Revision: [5177]
 * adding and to TextHelper::toList #1934

Revision: [5176]
 * updating html helper, deprecated methods moved to bottom

Revision: [5175]
 * adding formHelper::checkbox 
 * adding tests

Revision: [5174]
 * typo in number test

Revision: [5173]
 * adding number helper format and test for format and currency

Revision: [5172]
 * Using $this->hr() instead of $this->out('------------') as per gwoo's request

Revision: [5171]
 * updating interactive console for the grumpy guy

Revision: [5170]
 * Added missing parameter to dynamic bind call

Revision: [5169]
 * updating interactive console for the grumpy guy

Revision: [5168]
 * Correcting quoting 

Revision: [5167]
 * Correcting DboSybase class methods

Revision: [5166]
 * Adding enhancement suggestion from #1565 to all Dbo classes

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5318 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 09:01:21 +00:00
phpnut
6b02b375d9 Adding correct fix for Ticket #2775
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5316 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 07:59:41 +00:00
phpnut
dac1bd0913 Correcting code structure to standards
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5315 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 07:51:52 +00:00
phpnut
20dfa51702 Correcting class method names
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5314 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 07:49:50 +00:00
phpnut
23dfd90b29 Correcting code structure to standards
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5313 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 06:15:35 +00:00
phpnut
a9c0b7e406 Adding fix for Ticket #2786, fixes form dateTime helper does not set year to current
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5312 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 06:07:11 +00:00
phpnut
f613db8d1c Adding fix for Ticket #2792, fixes AuthComponent: Blank password at user login generates SQL error
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5311 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 05:59:56 +00:00