Commit graph

1667 commits

Author SHA1 Message Date
phpnut
d0c8cde9ab Adding fixes for test in [4811] fixes Ticket #1100
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4812 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-07 06:29:46 +00:00
mariano.iglesias
5e2d4167e3 Added tests for issue #1100
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4811 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-07 04:56:17 +00:00
phpnut
784ee985b5 Adding fix for Ticket #2363
Removed use of:
mysql_insert_id($this->connection);
mysqli_insert_id($this->connection);

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4810 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-07 01:42:12 +00:00
mariano.iglesias
8b2e2e6a7a Added test for #2361
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4809 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-06 19:12:15 +00:00
phpnut
980e713df7 Adding fix for Ticket #2360
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4808 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-06 19:05:06 +00:00
mariano.iglesias
da5e9c05a5 Fixing test for PHP4
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4807 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-06 19:01:46 +00:00
mariano.iglesias
5eaa76afe0 Improved test for #2360
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4806 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-06 18:35:25 +00:00
mariano.iglesias
f18ebf2117 Test added to replicate #2360
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4805 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-06 17:33:49 +00:00
phpnut
847cf2345f Merging fixes into the trunk:
Revision: [4802]
Refactoring duplicate code into one method

Revision: [4801]
Adding fixes for Ticket #2357, Ticket #2358
Added tests from Ticket #2357, Ticket #2358
Fixed failing DboSourceTest:
source:/branches/1.2.x.x/cake/tests/cases/libs/model/datasources/dbo_source.test.php@4778#L1080

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4804 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-06 12:38:06 +00:00
phpnut
aaa2e3cf21 Refactoring duplicate code into one method
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4802 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-06 12:19:23 +00:00
phpnut
d5fa0a961b Adding fixes for Ticket #2357, Ticket #2358
Added tests from Ticket #2357, Ticket #2358
Fixed failing DboSourceTest:
source:/branches/1.2.x.x/cake/tests/cases/libs/model/datasources/dbo_source.test.php@4778#L1080


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4801 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-06 11:15:45 +00:00
phpnut
48f3349c9a Merging fixes into the trunk:
Revision: [4796]
Removing comments from Set::merge()

Revision: [4795]
Adding fix for Ticket #2353

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4798 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 21:40:37 +00:00
phpnut
924a235ec3 Removing comments from Set::merge()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4796 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 21:29:00 +00:00
phpnut
69da631d61 Adding fix for Ticket #2353
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4795 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 21:20:08 +00:00
phpnut
1ad04a6558 Merging fixes into the trunk:
Revision: [4792]
Merging changes from 1.2.x.x Set class to 1.1.x.x branch

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4794 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 20:19:33 +00:00
phpnut
135ebe8994 Merging changes from 1.2.x.x Set class to 1.1.x.x branch
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4792 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 20:09:32 +00:00
phpnut
a677c882e7 Merging fixes into the trunk:
Revision: [4789]
Fixing last commit, had removed the ! prior to committing

Revision: [4788]
Adding fix for duplicate conditions being merged into the final query on self associations

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4791 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 19:23:46 +00:00
phpnut
eae615527d Fixing last commit, had removed the ! prior to committing
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4789 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 19:04:07 +00:00
phpnut
10bb0f303a Adding fix for duplicate conditions being merged into the final query on self associations
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4788 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 19:00:15 +00:00
phpnut
4f04f09978 Merging fixes into the trunk:
Revision: [4785]
Adding fix for Ticket #2347

Revision: [4784]
Adding fix for Ticket #2317.
Added ability to cache queries to Model::query() by passing true as a second param.
Before this method would turn off caching automatically and there was no way to turn it on.

Revision: [4783]
Adding fix for Ticket #2351

Revision: [4782]
Adding fix for Ticket #2349

Revision: [4781]
Fixing typo

Revision: [4780]
Adding headers

Revision: [4779]
Adding new Set::merge() and Set class test case, thanks Felix

Revision: [4778]
Fixing [Only variable references should be returned by reference]

Revision: [4777]
Remove deprecated methods from test cases

Revision: [4776]
finishing changes to FormHelper

Revision: [4775]
Preventing session started messages in session test

Revision: [4774]
Removing old AclNodeTest methods this code is no longer valid on 1.2

Revision: [4773]
Added test for combination of self joins and belongsTo

Revision: [4771]
Fixed test to used array based self join

Revision: [4770]
Adding fix for to correct additional 1:1 associations failing to query when there is a self join association.

Revision: [4769]
fixing some changes to FormHelper

Revision: [4768]
Removing preg_replace() and adding additional param $where = true to DboSource::conditions()

Revision: [4767]
Fixing self association joins with conditions and fields

Revision: [4766]
Fixed test

Revision: [4765]
Fixed test

Revision: [4764]
Fixed tests to include parenthesis used in ON clauses

Revision: [4763]
Adding fixes for association conditions

Revision: [4762]
adding fix to FormHelper::create() for plugin path with action, see #2342. Adding default sizes, maxlengths, and values to input. FormHelper::inputs() will now return all the fields in the model without the need to pass anything from the controller, uses a blacklist so some fields can be skipped. Added PaginatorHelper::numbers(),  will output current page numbers, uses a modulus to decide how many to show on each side of the current page. Paginator::options() now allows setting default paging params

Revision: [4761]
Adding fix for ModelTest::testRecursiveFindAll()

Revision: [4760]
Commenting debug code in model.test.php

Revision: [4759]
Adding fix for scaffold when using self associated HABTM

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4787 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 18:10:39 +00:00
phpnut
ba8421cce2 Adding fix for Ticket #2347
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4785 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 17:09:52 +00:00
phpnut
56451426fb Adding fix for Ticket #2317.
Added ability to cache queries to Model::query() by passing true as a second param.
Before this method would turn off caching automatically and there was no way to turn it on.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4784 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 16:50:03 +00:00
phpnut
b486b6f076 Adding fix for Ticket #2351
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4783 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 16:09:51 +00:00
phpnut
52f03bd340 Adding fix for Ticket #2349
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4782 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 16:06:37 +00:00
dho
dc06a86291 Fixing typo
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4781 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 12:11:23 +00:00
mariano.iglesias
df78e11548 Adding headers
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4780 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 06:08:00 +00:00
nate
ac904cd4d4 Adding new Set::merge() and Set class test case, thanks Felix
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4779 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 05:57:52 +00:00
phpnut
1c6c32981e Fixing [Only variable references should be returned by reference]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4778 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 04:47:01 +00:00
mariano.iglesias
08526db3f4 Remove deprecated methods from test cases
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4777 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 04:39:46 +00:00
gwoo
c81fd8b256 finishing changes to FormHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4776 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 04:31:46 +00:00
mariano.iglesias
5c1d178616 Preventing session started messages in session test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4775 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 04:27:44 +00:00
phpnut
56b7050858 Removing old AclNodeTest methods this code is no longer valid on 1.2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4774 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 04:22:42 +00:00
mariano.iglesias
003e30673e Added test for combination of self joins and belongsTo
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4773 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 04:04:55 +00:00
mariano.iglesias
a53e15ee51 Fixed test to used array based self join
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4771 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 03:40:08 +00:00
phpnut
f0cd2d49ea Adding fix for to correct additional 1:1 associations failing to query when there is a self join association.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4770 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 03:31:46 +00:00
gwoo
f49183f70e fixing some changes to FormHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4769 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 02:11:20 +00:00
phpnut
aeac37e707 Removing preg_replace() and adding additional param $where = true to DboSource::conditions()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4768 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 01:08:39 +00:00
phpnut
ea144501ae Fixing self association joins with conditions and fields
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4767 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 00:47:17 +00:00
mariano.iglesias
ad2069af72 Fixed test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4766 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 00:07:30 +00:00
mariano.iglesias
6fe9f01c24 Fixed test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4765 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 00:05:57 +00:00
mariano.iglesias
5757d3b07b Fixed tests to include parenthesis used in ON clauses
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4764 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-04 22:14:45 +00:00
phpnut
cc46c03f31 Adding fixes for association conditions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4763 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-04 21:40:59 +00:00
gwoo
06d6bbdbae adding fix to FormHelper::create() for plugin path with action, see #2342. Adding default sizes, maxlengths, and values to input. FormHelper::inputs() will now return all the fields in the model without the need to pass anything from the controller, uses a blacklist so some fields can be skipped. Added PaginatorHelper::numbers(), will output current page numbers, uses a modulus to decide how many to show on each side of the current page. Paginator::options() now allows setting default paging params
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4762 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-04 20:38:26 +00:00
phpnut
da35cf3193 Adding fix for ModelTest::testRecursiveFindAll()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4761 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-04 19:55:57 +00:00
phpnut
46768f219e Commenting debug code in model.test.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4760 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-04 18:24:17 +00:00
phpnut
49e58cec49 Adding fix for scaffold when using self associated HABTM
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4759 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-04 17:25:18 +00:00
phpnut
0d373a0c16 Merging fixes into the trunk:
Revision: [4756]
Adding fix for Ticket #2343
Corrected test case for InflectorTest:testInflectingPlurals() house, original test used wrong method from Inflector

Revision: [4755]
Adding fix to EmailComponent::_ _createHeader() that corrects addresses that are set in CC being added to BCC also

Revision: [4754]
Adding check for config/inflections.php back to Inflector

Revision: [4752]
Adding fix for Ticket #2339
Adding fix for Ticket #2335
Adding fix for Ticket #2344

Merged changes in dbo from 1.2 to 1.1
Merged changes to session handling in 1.2 to 1.1
Merged changes to Model::_ _saveMulti() in 1.2 to 1.1
Added Set::pushDiff() to append differences in array 2 to array 1
Added SessionComponent::activate() and SessionHelper::activate() to turn sessions usage on if AUTO_SESSION is set to false
Added test for Ticket #2343
Added change to AclNode to use correct table naming
Added garbage clean up to CakeSession::_ _close(); some installs, like Debian, have removed garbage clean
up and use a cron job instead. Currently this change is only supported for database session.

Revision: [4751]
Removing unnecessary requirements

Revision: 4750
Removing unnecessary requirements

Revision: [4749]
Implementing AclNodeTest through fixtures

Revision: [4748]
Adding test to reproduce ticket #2343

Revision: [4747]
Adding fix from Ticket #2336

Revision: [4746]
fixing check in magic methods for a value otherwise it will return false adding test to dbosource

Revision: [4745]
Adding fix for Ticket #2328

Revision: [4744]
Adding test for Ticket #2333.
Added fix for Ticket #2333

Revision: [4743]
Adding var $layout to EmailComponent

Revision: [4742]
Fixing EmailComponent::_ _formatAddress() was not returning $string

Revision: [4741]
Refactoring AuthComponent password hashing

Revision: [4740]
fixing router when affected by requestAction #2319, adding check in magic methods for a value otherwise it will return false

Revision: [4738]
Added test in testGenerateAssociationQuerySelfJoinWithConditions() to replicate issue when 'conditions' is not used after doing bindModel() for a $belongsTo relation

Revision: [4737]
Simplified failing test in model.test.php

Revision: [4736]
Simplified failing test in model.test.php

Revision: [4735]
Adding Ajax rendering fix for Ticket #2323

Revision: [4734]
Adding test for #2325

Revision: [4733]
Fixing Controller::cleanUpFields() formatting bug introduced in [4596] (Ticket #2322)

Revision: [4732]
Adding fix for TIcket #2325

Revision: [4731]
Adding patch from ticket #2324 plus test

Revision: [4730]
Adding patch from Ticket #2320

Revision: [4729]
Additional timestamp fix for Controller::cleanUpFields()

Revision: [4728]
Fixing typos

Revision: [4727]
Misc. fixes to DboPostgres, added basic schema generation, and fixed getting insert IDs from sequence (Ticket #2309)

Revision: [4726]
Refactoring FormHelper and fixing 'empty' option for date/time elements in FormHelper::input() (Ticket #2311)

Revision: [4725]
Fixed typo in function name

Revision: [4724]
Identified line that allows bakery issue test to succeed

Revision: [4723]
Added test that replicates issue in bakery with nested models after doing some bindModel() and unbindModel()

Revision: [4722]
Fixing Controller::cleanUpFields() to handle timestamp fields, and properly unset meridian values

Revision: [4721]
Added test for ticket #2321

Revision: [4720]
Adding Model::saveField() fix for triggering invalid hasAndBelongsToMany saves

Revision: [4719]
Moving session flash rendering from component to helper (fixes errors when using setFlash() in beforeFilter)

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4758 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-04 08:36:00 +00:00
phpnut
789f1f4f3d Adding fix for Ticket #2343
Corrected test case for InflectorTest:testInflectingPlurals() house, original test used wrong method from Inflector

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4756 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-04 08:01:38 +00:00
phpnut
6593be8239 Adding fix to EmailComponent::_ _createHeader() that corrects addresses that are set in CC being added to BCC also
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4755 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-04 07:46:04 +00:00
phpnut
4fb14b1506 Adding check for config/inflections.php back to Inflector
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4754 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-04 07:42:19 +00:00