9 Commits

Author SHA1 Message Date
Daniel Camargo
15e4888a63 partial #948 2013-04-05 14:31:01 -03:00
Stuardo Rodríguez
bb852de0c4 fixed #736, "inactive" items are randomly activated, at least when logged into admin
* fixing the problem of the admin loading the community and all it's dependencies twice because a naming collition
* replacing $this->community for $this->restaurantCommunity in the admin/restaurant form because of the naming collition
* detecting if the call has been from the admin or from the front end because API calls do not send params
* unifying the return exit in the API _returnRestaurant() action
* sending the $where filters from the API controller instead of detecint it in the models
* sending the $where param in cascade from the API  to the Restaurant model to the Category model for the Category->dishes($where) filter
* improving the readability in the bundle where the community is sent, adding documentation about the $view->category variable in the view file
2013-02-25 12:27:45 -05:00
Stuardo Rodríguez
11d0fc2fd0 detecting problem 2013-02-25 09:01:56 -05:00
Stuardo Rodríguez
8ff6f4c84a fixed #724, categories in different order
Chrome browsers sort the properties, but Firefox leaves them as defined.
Changed the code to put the elements in an simple array (json array) instead of
associative arrays (json objects) so that the elments are not reordered.

* forces the export for the categories, dishes and options, to be added as a
  regular array of items, not as an associative array with the id as key
* added dockblock to help the IDE with the return elements for the exports
2013-02-18 17:08:38 -05:00
Stuardo Rodríguez
030c2307ff partial for issue #377, ability to rearrange order of items
* finished categories
* finished dishes
2013-02-11 23:50:27 -05:00
Stuardo Rodríguez
53d670567b partial for issue #22
* moved the protected _jsonBoolean() method to the Cana_Table as it's something to be used in different models
* moved the protected _mergeWhere() method to the Cana_Table as it's something to be used in different models
* use the _mergeWhere() to show the inactive dishes in the admin
* use the _mergeWhere() to show the inactive notifications in the admin
2013-02-11 09:15:44 -05:00
arzynik
46c1d5ef25 seo progress 2012-10-16 17:05:13 -07:00
arzynik
0e586f3423 hide inactive dishes 2012-08-26 16:33:58 -04:00
arzynik
5c27f91adf data structure refactor 2012-07-28 11:30:26 -07:00