Commit graph

7543 commits

Author SHA1 Message Date
mark_story
2fa2de441f Updating the doc block for Datasource::delete()
Fixes #2054
2011-10-05 22:10:14 -04:00
mark_story
c143908a03 Change how floats are formatted in MySQL.
Fixing precision issues where numbers would get truncated.
Also maintaining compatibility with scientific notation.
Fixes #2049
2011-10-05 21:53:52 -04:00
mark_story
a6e4208bdd Fix Controller::paginate and ordering with virtualFields.
Model::isVirtualField() does ensure that model names match the current model.
This creates false positives when doing sorting datasets when an associated
model has a field with the same name as a virtualField.
Fixes #1822. Fixes #1756.
2011-10-04 22:52:28 -04:00
Frank de Graaf
69ba1965b8 Changed the order of the include for the custom reporter and added file_exists() to prevent errors. 2011-10-04 09:43:35 +02:00
mark_story
534291a1a6 Re-adding DISABLE_DEFAULT_ERROR_HANDLING to Configure.
Fixes #2033
2011-09-29 20:36:11 -04:00
José Lorenzo Rodríguez
314948609d Merge pull request #220 from bar/1.3-fix-input-error-complete
Form input elements can now be rendered with 'error' class appended and empty error messages.
2011-09-28 22:17:03 -07:00
Ber Clausen
ae8dd1c969 Form input elements can now have 'error' class appended with empty error messages.
Allow setting empty error messages inside Model->validate. This
complements Ceeram's commit which allows overriding error messages by
empty strings from Form->input().
2011-09-28 12:14:01 -03:00
Ceeram
9f23f65755 Passing empty string in [\'error\'] behaved like false, now will behave like any other string 2011-09-28 12:14:01 -03:00
Jose Lorenzo Rodriguez
7f2a4e5137 Merge branch '1.3' of github.com:cakephp/cakephp into 1.3 2011-09-28 10:42:13 -04:30
Jeff Loiselle
932f07ca77 Fixes baking of custom views. Was not setting path correctly or
capturing content
2011-09-28 10:32:00 -04:00
mark_story
d489d490a6 Moving 'joins' key conversion into DboSource::buildJoinStatement()
Having this in Model felt like the wrong layer for it to reside.
This also simplifies a few things internally.
Refs #1517
2011-09-27 22:43:06 -04:00
Ceeram
6afa21cb18 find with joins option now respects prefix set in database configuration, fixes #1517
test to prove validity of ticket #1517
2011-09-27 22:43:06 -04:00
Ber Clausen
b5ddd4e5b7 Update Helper->tagIsInvalid() documentation. 2011-09-27 13:55:32 -03:00
Ber Clausen
a4fc424b40 Update Set::extract() calls inside Helper. 2011-09-27 13:24:24 -03:00
mark_story
c2104a3613 Stripping - from default Message-ID header.
This fixes issues where certiain spamassassin rules would
flag EmailComponent messages as spam due to too many - in the messageID.
Fixes #2019
2011-09-23 22:41:19 -04:00
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
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
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
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
Jose Lorenzo Rodriguez
96a8d97de7 Releasing 1.3.12 2011-09-18 16:58:45 -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
26d80debcd Adding test case for functions in condition keys.
Closes #1718
2011-09-17 16:46:32 -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
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
mark_story
60981fcb4b Hardcoding 'app' in JsHelper
Applying patch from 'Jelle Henkens'.
Hardcoding this value fixes issues where the variable name
would change if you renamed your app directory.  Fixes environment
specific bugs.
Fixes #1981
2011-09-09 21:35:44 -04:00
mark_story
fbc76f195f Fixing other failing test.
This test was failing because of changes made to Configure + error
handling.
2011-09-08 20:18:30 -04:00
hirata
e86ae43796 Fix SQL when using operator SIMILAR TO
Fixes #1979
2011-09-08 20:18:12 -04:00
mark_story
63902ab73f Adding failing test for similar to.
Refs #1979
2011-09-08 20:11:09 -04:00
mark_story
da6a5fa301 Fixing failing tests for float formatting. 2011-09-08 20:09:48 -04:00
mark_story
1e1671ab7f Removing getTests. Fixing failing test. 2011-09-08 19:55:13 -04:00
zoydsan
cd14874b59 Backport unit tests from branch 2.0 (tests for strings concatenated with '.') 2011-09-08 19:55:02 -04:00
zoydsan
200c85c7c4 Ticket #1669, i18n: parse (multiline) strings concatenated with "." (for 1.3 branch)
The patch  builds on the code of cake 2.0, but with this fix, comments are allowed, and an exception is thrown if invalid output is found. Examples:

__('Split' . ' string')    => ok
__('Split' . // Comment
    ' string')             => ok
__('Split' . $var)         => error
2011-09-08 19:48:53 -04:00
mark_story
31b07795b2 Fix create() and onsubmit option.
Backporting bug-fix from 2.0

Removing support for onSubmit variant.  Additional
choices are not necessary. Fixing onsubmit option
not correctly working.
Fixes #1977

Conflicts:

	cake/libs/view/helpers/form.php
2011-09-07 21:07:34 -04:00
Jelle Henkens
ae942a7f7b Added tests to test ajax settings 2011-09-07 21:03:48 -04:00
mark_story
ac0b2b8280 Applying patch from Daniel Feinberg for Containable
Removes __backContainableAssociation as its not needed and causes
more problems than it solves.
Fixes #1762
2011-09-07 20:39:12 -04:00
Daniel Feinberg
95b275dc3b Adding a test that fails for ticket #1762
Signed-off-by: mark_story <mark@mark-story.com>
2011-09-07 20:31:21 -04:00
mark_story
73a6ebea8d Add cross version constants.
Add constants for older versions of PHP which may be missing them.
Fixes #1975
2011-09-07 20:12:22 -04:00
T0aD
5e7509be55 Add unix sockets support to memcache. 2011-09-07 07:25:43 -04:00
mark_story
a61bd5e3e8 Adding tests for unix socket support in Memcache.
Refs GH#194
2011-09-07 07:18:47 -04:00
mark_story
b1c4b57d85 Updating doc comment about find(list).
Refs #1968
2011-09-06 08:00:08 -04:00
mark_story
2c3fa32a5d Splitting big test up into smaller ones. 2011-09-05 09:56:25 +01:00
Jelle Henkens
53d221c3d1 Fixing bug where scientific notations were not passed to mysql in their original form which resulted in loss of precision 2011-09-05 01:41:38 +01:00
Mark Story
15a1741216 Merge pull request #182 from jellehenkens/1.3
Fixes #1938 - toRSS() generates the wrong timezone when using userOffset.
2011-09-04 07:40:09 -07:00