summaryrefslogtreecommitdiff
path: root/engines/support/app/controllers
AgeCommit message (Collapse)Author
2014-07-09stay on all tickets view when sorting (#5879)Azul
When an admin sorted the tickets view in a different order it would take them to their own tickets list before
2014-06-03tickets: fix bug that allow index of other userselijah
2014-05-29fix flash for creating anonymous ticketsAzul
2014-05-26tickets: structure i18nAzul
2014-05-26flash_for with_errors option displays error messagesAzul
2014-05-26Controller#flash_for instead of FlashResponderAzul
FlashResponder added a flash before responding. However at the point of responding objects have already been saved. So there is no way to test if they were changed. Now instead we can call flash_for resource before resource.save and it will add the flash messages only if the resource was actually changed.
2014-05-26split up and refactor TicketController#updateAzul
close and open actions for plain opening and closing the tickets respond_with so fields are not cleared on invalid update the custom actions are not strictly restful. But adding a subresource felt like too much overhead and is conceptually hard to grasp (so we destroy the openess of the ticket to close it?).
2014-05-26FlashResponder will automagically add flash messagesAzul
2014-05-13prefill ticket form from the model - fixes #5657Azul
email and regarding user fields can be set to defaults based on created_by user. If these fields are emptied by the submitting user they will be set to whereas they are nil if they have not been initialized. In that case we will use meaningful defaults from the user who created the ticket.
2014-05-13keep empty email field if user removed prefillAzul
We should respect the users choice. We can still get their email from the user id if we really need to.
2014-04-25using simple_form for the last form that was not using it.Azul
2014-04-25Merge pull request #148 from azul/feature/api-quota-supportazul
Feature/api quota support + current_user null pattern
2014-04-24let's only add the flash notice if the ticket has been createdAzul
2014-04-17make use of the UnauthorizedUserAzul
Null Pattern for current_user - use it to get rid of some conditionals
2014-04-11move engines into engines directoryAzul
Also renamed help to support so it's harder to confuse it with documentation