Skip to content

Commit

Permalink
Fix the fix for the editable id column
Browse files Browse the repository at this point in the history
With the previous fix i managed to break the create, it should be fine now
  • Loading branch information
tefra committed Aug 12, 2012
1 parent 3016730 commit 9a15650
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions data/Entity.php
Expand Up @@ -406,17 +406,14 @@ public function export() {
* @param string $name Optionally included field name.
* @return mixed Entire stored data array if $name is empty, otherwise the value from the named field.
*/
public function stored($name = null)
{
if($this->exists())
{
if($name)
{
public function stored($name = null){
if($this->exists()) {
if($name) {
return isset($this->_data[$name]) ? $this->_data[$name] : null;
}
return $this->_data;
}
return false;
return $this->data($name);
}

/**
Expand Down

0 comments on commit 9a15650

Please sign in to comment.