Skip to content

Commit df9fdc5

Browse files
committed
basicobject compatibility regression fix
1 parent 35e8864 commit df9fdc5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 1.4.3
2+
3+
## Bugfixes
4+
5+
- BasicObject compatibility regression fixed.
6+
17
# 1.4.2
28

39
## Bugfixes

src/Form.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function __construct($id, $callback, array $options=array()) {
129129
$this->parse_options($options);
130130
$this->callback = $callback;
131131

132-
if($id instanceof BasicObject) {
132+
if($id instanceof \BasicObject) {
133133
$this->id=get_class($id);
134134
$this->res = $id;
135135
$this->hidden_field("id");
@@ -268,7 +268,7 @@ public function fields_for($id, $obj, $method, $target=null) {
268268
$old = array($this->res, $this->id, $this->name_pattern);
269269
$this->id = $id;
270270
$this->name_pattern = $id . '[%s]';
271-
if ( $obj instanceof BasicObject ) {
271+
if ( $obj instanceof \BasicObject ) {
272272
$this->res = $obj;
273273
$this->hidden_field("id");
274274
} else {

0 commit comments

Comments
 (0)