public function getOriginalFieldValue($name)
    {
        if ($this->isFieldModified($name)) {
            return $this->fieldsModified[$name];
        }

        if (isset($this->data['fields'][$name])) {
            return $this->data['fields'][$name];
        }

        return null;
    }
public function getOriginalFieldValue($name)
    {
        if ($this->isFieldModified($name)) {
            return $this->fieldsModified[$name];
        }

        if (isset($this->data['fields'][$name])) {
            return $this->data['fields'][$name];
        }

        return null;
    }
public function getOriginalFieldValue ( $ name ) { if ( $ this -> isFieldModified ( $ name ) ) { return $ this -> fieldsModified [ $ name ] ; } if ( isset ( $ this -> data [ 'fields' ] [ $ name ] ) ) { return $ this -> data [ 'fields' ] [ $ name ] ; } return null ; }
Returns the original value of a field.

@param string $name The field name.

@return mixed The original value of the field.

@api
Returns the original value of a field .