Commit graph

11743 commits

Author SHA1 Message Date
José Lorenzo Rodríguez
f57f7305f5 Merge pull request #212 from j15e/1.3
Fix to defect model virtualfields with mysqli
2011-09-23 07:17:07 -07:00
Jean-Philippe Doyle
af36429342 Fix to defect model virtualfields with mysqli
Refs #2017
2011-09-23 09:59:45 -04:00
ADmad
1d56afca11 Merge pull request #211 from basuke/2.0
Added tests for saveAll() to ensure it did not set foreignkey fields to null for associated models during validation (bug existed in 1.3)
2011-09-23 06:37:45 -07:00
Yosuke Basuke Suzuki
5612d411f3 Added unittest for saveAll() validation with the data no id assigned. 2011-09-23 22:23:26 +09:00
Bob Fanger
9f7126898b Added the "locale = $locale" condition to the ON part of the query.
Added "locale = $locale" to the ON part and changed the join type to an INNER join.
Because adding it to the WHERE part caused the translation to be mandatory anyway.
This cleans up the code and "INNER" joins are generally faster than LEFT joins.
2011-09-23 15:07:11 +02:00
ADmad
9220837908 Merge pull request #210 from basuke/1.3
1.3 saveAll() with validation option "only" or "first" works well with associated data.
2011-09-23 04:36:45 -07:00
Yosuke Basuke Suzuki
d9c48b0d34 Added unittest for eef87ee74c. 2011-09-23 18:23:50 +09:00
Yosuke Basuke Suzuki
eef87ee74c Bug fixed. saveAll with validation option "only" or "first" works wll.
saveAll() did set null foreign key when it just validates. I've
assigned numeric validation on the hasMany side model and validation
did fail with this behavior. I've changed this not to set foreign key
when it just validation.
2011-09-23 16:27:15 +09:00
mark_story
a65a5eb506 Apply patch from 'Eärendil' to fix FormHelper.
Fixes Model.field.1 style fields when used with SecurityComponent.
Fixes #2011
2011-09-22 22:30:04 -04:00
mark_story
36928d35f9 Redoing fix done in 155968349f
Adding more test cleanup to try and solve build issues.
2011-09-22 22:05:36 -04:00
mark_story
eccc05d8b1 Revert previous commit. Trying to fix jenkins build. 2011-09-22 21:39:00 -04:00
mark_story
155968349f Skip . and .. when generating trees.
Fixes #2012
2011-09-22 21:14:27 -04:00
mark_story
6a05cad69f Fix Validation::time so it accepts spaces.
Fixes #2015
2011-09-22 20:53:56 -04:00
ADmad
07f6803540 Additional inflection rules provided through Inflector::rules() now take precedence over the core ones as expected. Fixes #2016 2011-09-23 01:14:52 +05:30
Renan Gonçalves
0bcb8d0dfa Improving the regex and moving more files around.
- Making the regex case insensitive so it can also matches capital C in class (ie. Class).
- Adding a new protected method to move view files, the directory will be camelized.
2011-09-22 15:03:42 +02:00
mark_story
ceed424770 Updating doc blocks. 2011-09-21 22:30:02 -04:00
Jose Lorenzo Rodriguez
90d86678fa Merge branch '2.0' of github.com:cakephp/cakephp into 2.0 2011-09-21 13:32:03 -04:30
Jose Lorenzo Rodriguez
c45538ab08 Making CakePlugin::loadAll() static as its fellow class methods 2011-09-21 13:31:11 -04:30
José Lorenzo Rodríguez
b1f8d21434 Fixing doc block in core AppController file 2011-09-21 07:52:17 -05:30
mark_story
7cabb4e4d5 Extracting password hashing into as separate method.
This makes is much easier for a subclass to only change how passwords
are hashed.
2011-09-21 07:38:22 -04:00
mark_story
0267a048f3 Removing Mime type notice.
It causes message delivery failures on some SMTP servers.
Amazon SES suffers from this issue.
Fixing failing tests caused by additional spaces in email address
formatting.
Fixes #2005
2011-09-20 22:35:23 -04:00
Jelle Henkens
957a75c45e Removing PHP4 compatibility code
Signed-off-by: mark_story <mark@mark-story.com>
2011-09-20 21:10:32 -04:00
mark_story
bfcfeeb3ab Updating package names in bootstrap file. 2011-09-20 20:16:06 -04:00
Renan Gonçalves
1b2b191212 Updating cake.generic.css to its newest version from app directory. 2011-09-20 20:29:55 +02:00
José Lorenzo Rodríguez
69934a09f3 Merge pull request #204 from petteyg/2.0-postgres_inet
2.0 - Add validation guess for Postgress inet field
2011-09-20 10:53:20 -07:00
Gordon Pettey (petteyg)
744558de90 Add validation guess for Postgress inet field 2011-09-20 17:45:35 +00:00
Jose Lorenzo Rodriguez
96a8d97de7 Releasing 1.3.12 2011-09-18 16:58:45 -04:30
Jose Lorenzo Rodriguez
b3157cdd71 Releasing 2.0.0-RC2 2011-09-18 16:54:14 -04:30
Jose Lorenzo Rodriguez
8ccf90437a Typo in last commit. Making flexible the range for memory usage in theme view after changing internal templates 2011-09-18 16:43:00 -04:30
Jose Lorenzo Rodriguez
a2daa39a98 Making theme test more flexible so it passes after recent changes in templates 2011-09-18 16:37:17 -04:30
mark_story
4464dbbd29 Fixing test method name. 2011-09-18 13:47:20 -04:00
mark_story
a64099168c Add test for bindModel + containable.
Closes #1821
2011-09-18 13:45:39 -04:00
mark_story
8d43764801 Fix issue with duplicate associations when using string form.
Fixes #2002
2011-09-18 12:26:59 -04:00
mark_story
6a4e7558fc Merge branch '1.3' into merger
Conflicts:
	cake/basics.php
	cake/console/libs/tasks/extract.php
	cake/libs/view/helpers/js.php
	cake/tests/cases/console/libs/tasks/extract.test.php
	cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php
	cake/tests/cases/libs/model/datasources/dbo_source.test.php
	cake/tests/test_app/views/pages/extract.ctp
	lib/Cake/Cache/Engine/MemcacheEngine.php
	lib/Cake/Model/Behavior/ContainableBehavior.php
	lib/Cake/Model/Datasource/Database/Mysql.php
	lib/Cake/Model/Datasource/DboSource.php
	lib/Cake/Model/Model.php
	lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php
	lib/Cake/Test/Case/Model/CakeSchemaTest.php
	lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php
	lib/Cake/Test/Case/View/Helper/FormHelperTest.php
	lib/Cake/Test/Case/View/Helper/TimeHelperTest.php
2011-09-18 12:09:04 -04:00
ADmad
670fea6e37 Fixing doc block 2011-09-18 19:58:47 +05:30
mark_story
26d80debcd Adding test case for functions in condition keys.
Closes #1718
2011-09-17 16:46:32 -04:00
ADmad
08026e5828 The 'default' config for Configure class is now auto created on first use if not already created. 2011-09-18 00:06:37 +05:30
mark_story
0e5797d69d Make full page caching + Themes work.
Dispatcher now uses ThemeView for rendering cache files.
This enables nocache blocks to reference theme elements.
Fixes #1858
2011-09-17 13:19:43 -04:00
mark_story
85b86cb282 Fix entity names for associated model date fields.
Fixes #1993
2011-09-17 12:29:21 -04:00
mark_story
09e7f1d491 Splitting apart the Scaffold and ScaffoldView tests.
Fixes #1985
2011-09-16 22:08:19 -04:00
An M - kub2
26495b36d1 Fix incorrect formation of query string
removed  on ALTER COLUMN xx TYPE xxx for postgres.
Fixes #1967
2011-09-16 21:20:06 -04:00
mark_story
c919b73f22 Adding failing test for postgres alter table.
Refs #1967
2011-09-16 21:19:12 -04:00
mark_story
77b3e63293 Removing AFTER in Postgres add column.
It causes SQL errors on Postgres 8.4
2011-09-16 21:13:21 -04:00
Renan Gonçalves
4378bb6dc4 Fixed bug in CakeSchema where it determines the field position.
- Respective tests were added.
- Schema files will now have 'after' => 'previous_field' on it.
2011-09-16 15:28:28 +02:00
Renan Gonçalves
707c0b4130 Fixed bug in CakeSchema where it determines the field position.
- Respective tests were added.
- Schema files will now have 'after' => 'previous_field' on it.
2011-09-16 15:08:22 +02:00
ADmad
7c87e9abc1 For MySQL you can now specify the socket to use using unix_socket key in the config array. Closes #1994 2011-09-16 13:40:04 +05:30
Graham Weldon
9d1e3cbb05 Fix comment for ife() Upgrade. Thanks SkieDr. 2011-09-16 00:38:26 +10:00
Graham Weldon
d8468c1a38 Fixed incorrect ife() conversion. Thanks SkieDr. 2011-09-16 00:34:39 +10:00
Renan Gonçalves
cd6c370dd9 Adding tests method to Upgrade shell, fixing FooTestCase to FooTest.
Also making sure the preg_match matches the right class and not move the file to other directory rather than tests.
The method `tests` need to be run before `locations` to work properly.
2011-09-14 13:33:01 +02:00
mark_story
42dccac8da Splitting AclTest into multiple test case files.
Fixes #1985
2011-09-13 21:25:50 -04:00