Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Should have been association name, not field name.

  • Loading branch information...
commit c3e9a931d6d141f03207dd7345d3daa7bb6fb95c 1 parent b5f9187
@markstory markstory authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/Model/Behavior/TranslateBehavior.php
View
2  lib/Cake/Model/Behavior/TranslateBehavior.php
@@ -394,7 +394,7 @@ public function bindTranslation($model, $fields, $reset = true) {
$field = $key;
$association = $value;
}
- if ($field === 'name') {
+ if ($association === 'name') {
throw new CakeException(
__d('cake_dev', 'You cannot bind a translation named "name".')
);
Please sign in to comment.
Something went wrong with that request. Please try again.