Overriding "Active"s behaviour.

edited May 2014 in Modules
Hi again admin,

So i have a simple module etc. etc.

Each row has a field called "active" which is nothing to do with Fuel at all. However Fuel's whole activate/deactivate feature is triggering on it. I've gotten rid of the buttons up top using 'item_actions' however when I go in to edit an item I get the following:

This item is not active.


How can I get fuel to stop giving this warning?

Comments

  • edited 4:11AM
    Unfortunately "active" and "published" are reserved field names that have special meaning in FUEL. Can you change the fields in your model? You could create a record model method to act as an alias of "active" that could return to the new active field name (e.g.
    ... return $this->my_active)
Sign In or Register to comment.