I will add config on/off and also an option to choose fields.

On Tuesday, October 1, 2013, Christian Winther wrote:

> In Controller/Crud/Listener/ApiFieldFilterListener.php:
>
> > @@ -245,7 +245,7 @@ protected function _checkField(Model $model, $field) {
> >  		$isPrimary = $modelName === $model->alias;
> >
> >  		// If the model name is the local one, check if the field exists
> > -		if ($isPrimary && !$model->hasField($fieldName)) {
> > +		if ($isPrimary && !$model->hasField($fieldName, true)) {
>
> [image: :+1:]
>
> I think it should be disabled by default, but on/off doesn't matter much
> to me, what do matter is an option to turn it on/off - so it defiently need
> to be a configurable setting :)
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/FriendsOfCake/crud/pull/134/files#r6690699>
> .
>


-- 
Best regards
FRODE MARTON MELING
*IT Manager*
..........................................
SALT SHIP DESIGN AS

MOBILE:+4790600710SWITCHBOARD:+47 55 62 93 40EMAIL:fm@saltship.comWEB:
www.saltship.com <http://saltship.com/>