José Lorenzo Rodríguez
03200440ed
Fixing TranslateBehavior and $tablePrefix. Closes #168
2010-01-24 18:27:08 -04:30
Mark Story
5d35fd8d38
Fixing issues in DboSource::defaultConditions() and DboSource::conditions() where doubly deleting a record from the beforeDelete and delete() could create incorrect conditions that would delete all records in a table. Fixes #250
2010-01-22 10:30:22 -05:00
Mark Story
317463096a
Refactoring tests in l10n that use object properties.
2010-01-20 14:53:57 -05:00
Mark Story
ae4a31f070
Making DEFAULT_LANGUAGE also set $language var which sets Config.language to a correct value. Fixes #228
2010-01-20 14:33:37 -05:00
José Lorenzo Rodríguez
cb4a1f07e5
Fixing issue with persistModels and plugin models, closes #192 and #198
2010-01-18 13:13:10 -04:30
Mark Story
8f2a4a1e0e
Merge branch '1.2' of github.com:cakephp/cakephp1x into 1.2
2010-01-14 20:28:00 -05:00
Mark Story
5c47d8dd7a
Trimming trailing whitespace from files. Refs #201
2010-01-14 20:15:54 -05:00
Joël Perras
15b8a3ec71
Updating copyright date on all files.
2010-01-13 23:47:14 -05:00
José Lorenzo Rodríguez
4e3aedecde
Fixing persitModel and plugin Behaviors. Closes #192
2010-01-13 09:53:00 -04:30
Mark Story
3c88d81735
Adding tests for model method validation with multiple parameters and addition of original validation rule to method params. Closes #149
2010-01-01 23:34:11 -05:00
Mark Story
6356c6ed87
Fixing issue where forms generated with requestAction would be missing the _Token fields that Security component creates. Test cases added to ensure that token key does not change when requestAction is used.
...
Fixes #68
2009-12-18 19:05:33 -05:00
Mark Story
aa3a197b26
Reformatting test case. Fixes #104
2009-12-16 18:40:45 -05:00
real34
bdfb50e6bb
Fixed a bug in Set::extract. Wrong key returned when two arrays are at the extraction level.
...
Signed-off-by: Mark Story <mark@mark-story.com>
2009-12-16 18:33:23 -05:00
Mark Story
a490e249fa
Adding test for validation of with models canceling a save.
...
Adding initial implementation of Model::__validateWithModel().
Correcting error in previous commit. Adding tests for saveAll and validating habtm with models.
2009-12-15 22:55:22 -05:00
Mark Story
02330b2d9c
Making DboSource::fields() accept an expression object. Fixes issues with sql parsing over quoting special SQL syntax.
...
Tests added
Fixes #66
2009-12-13 15:52:07 -05:00
Mark Story
47a9401d43
Adding test case for cached view files, and fatal errors caused by the view instance not being registered. View instances are now registered when rendering view caches, and unregistered if the cached view fails. This fixes issues rendering flash messages with custom layouts and fixes FormHelper methods inside nocache blocks.
...
Fixes #60
2009-12-13 12:39:39 -05:00
Mark Story
7c2cdb1fb4
Adding tests to Xml::toString to disprove #395
2009-12-08 22:00:55 -05:00
mark_story
cc750d15f1
Adding test to disprove #385 . Proves saveAll with validate => first behaves correctly.
2009-12-04 14:39:12 -05:00
mark_story
cd46f4db2e
Fixing function signature of ThemeView constructor. Fixes issues where ThemeView would always be registered causing issues with EmailComponent and themed views. Fixes #370
2009-11-30 09:19:25 -05:00
mark_story
26aa3731e0
Fixing _name_ elements being inserted into serialized xml from Xml lib. Test case added. Fixes #367
2009-11-27 14:27:32 -05:00
dogmatic
51d0805ce0
fixes Text::toList to allow passing array( 1=>"abc", 2=>"abc" ) and the updated test case
...
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-24 20:23:23 -05:00
mark_story
2e0acbf505
Making habtm join conditions used by __saveMulti when finding link records to remove. It should be noted that having conditions on non-joinTable tables, and not having a model on the joinTable can cause SQL issues. Fixes #304
2009-11-22 17:56:46 -05:00
mark_story
6c3bcdd7e6
Removing commented code.
2009-11-22 17:34:11 -05:00
Juan Basso
c6c7474502
Fix test of the size of lines in MagicDb (included test for it).
...
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-22 12:27:57 -05:00
Juan Basso
71df8dbbba
Replace function sizeof (alias) by count.
...
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-21 13:50:57 -05:00
Juan Basso
df9e1e0bd1
Replace function join (alias) by implode.
...
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-21 13:43:11 -05:00
Juan Basso
1acc60b04c
Replace function die (alias) by exit.
...
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-21 13:38:11 -05:00
ADmad
862ff82ad4
Updating Configure::store to fix escaping issues
...
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-14 19:38:53 -05:00
mark_story
06d4e5e553
Reformatting code in memcache.
...
Adding unset() to test case to remove unnecessary keys that can cause test failure.
2009-11-14 18:50:23 -05:00
mark_story
9376826aa4
Fixing HttpSocket::buildUri when host key is empty.
...
Tests added
Fixes #271
2009-11-13 14:42:40 -05:00
mark_story
8d407ac915
Adding test to form helper to increase code coverage.
2009-11-13 09:45:25 -05:00
mark_story
d302ed1bfa
Fixing comment block formatting.
2009-11-13 09:44:51 -05:00
ceeram
ea482442ff
test to prove ticket #291
...
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-13 09:22:05 -05:00
nate
1c8a2f232b
Changes Model::find() to allow modification of DataSource connection during callbacks.
2009-11-12 14:48:03 -05:00
mark_story
a7a6dc8c43
Fixing issue where SecurityComponent::_validatePost could generate notices if elements were removed from _Token array.
...
Tests Added
Fixed #228
2009-11-08 14:12:18 -05:00
mark_story
6db91b0f49
Fixing issues in ContainableBehavior that could leave models unbound when 'fields' was used as part of containment conditions. Fixes #253
2009-11-07 17:43:18 -05:00
ceeram
dd0c4a64c5
Test to prove ticket #253
2009-11-07 11:02:43 -05:00
mark_story
4bbfcbff7e
Fixing limit:0 and controller::paginate. Removes possibilty to generate sql errors by inputting invalid limit options. Tests updated. Refs #264
2009-11-06 00:44:21 -05:00
Ernst Mayerhofer
0327f15395
paginator works with limit 0 now too
2009-11-05 23:44:02 -05:00
mark_story
b4f6dd9c6e
Adding tests and support for binary columns in model task. Fixes #241
2009-11-04 22:57:43 -05:00
mark_story
e609875754
Updating Model::invalidFields, so returning false from beforeValidate() will abort both the validation and saving() of the record.
...
Tests added to check beforeSave, beforeValidate, and beforeDelete return values.
Fixes #257
2009-11-04 12:36:17 -05:00
mark_story
8c46cc49fb
Fixing issue in Dispatcher::cached() where plugins ending in asset extensions would be incorrectly handled.
...
Test added
Fixes #237
2009-11-03 13:14:38 -05:00
mark_story
a87d31cc7f
Fixing $cacheAction requiring the inclusion of the controller name for view cache files to be generated. This behavior makes the cache helper behave as documented.
...
Test cases added. Fixes #232
2009-11-02 00:07:02 -05:00
mark_story
51244907d1
Updating merge vars test to skip itself if run in a group context.
...
Updating controller group.
2009-10-31 14:55:04 -04:00
mark_story
6b616b7171
Adding skip for validation test, for DNS servers that reply for non-existant domains.
2009-10-31 14:48:37 -04:00
mark_story
76019513e1
Updating lib group to run non-mvc libs.
...
Removing no_database group. It was redundant.
2009-10-31 14:33:53 -04:00
mark_story
24a75a27bf
Updating Javacsript helper to use a real skipIf
2009-10-31 14:25:52 -04:00
mark_story
59566d4587
Updating component test case to no fail in group test.
...
Updating controller group to only run controller classes.
2009-10-31 14:08:56 -04:00
mark_story
a91970b7b2
Fixing security component test failures when run as part of a group.
2009-10-31 13:41:16 -04:00
mark_story
17edec8460
Changin how HttpSocket parses query string parameters. Makes HttpSocket querystring parameter parsing more congruent with how PHP handles query string parameters in that it doesn't require urlencoded characters.
...
Tests added.
Fixes #156
2009-10-29 20:14:36 -04:00