Closed (fixed)
Project:
Flag
Version:
8.x-4.x-dev
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 May 2015 at 14:49 UTC
Updated:
4 Jun 2015 at 01:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
socketwench commentedNot sure if this is a regression or not since it's been ages since I've used Flag 7.x...
Comment #2
socketwench commentedPretty sure this is still broken.Definitely still broken. When you select "Reset" from the operations popup, you get an attempt to call a function from a non-object in EntityConfirmFormBase lin 26. For some reason, the flag entity isn't being passed to the entity confirm form...
Comment #3
socketwench commentedHm. Guess I can't use EntityConfirmFormBase there...
Comment #4
martin107 commentedI really like this issue ...
With my users hats on adding to the operation pull down button is exactly where I would first go to look for it ... so that is great
there is a minor error in the case of the name FlagResetForm::getFormID() - it need to match up FormInterface::getFormId()
When I manually test I am getting errors from inside flag_reset_flag() when trying to access the no longer existent $flag->flag_id
My instinct is to wait for #2478565: flag_reset_flag() is broken which should fix that.
Comment #5
socketwench commentedNormally I'd agree, but I needed to have a non-programmatic way to invoke the reset so I could debug #2478565: flag_reset_flag() is broken.
Comment #6
joachim commented> Not sure if this is a regression or not since it's been ages since I've used Flag 7.x...
On D7 and prior, reset was only something available to Rules and through the API. There's never been a UI for it (though it's been requested, there's an old issue somewhere).
Comment #7
socketwench commentedSeems to make sense to me. Might as well include it now since it's mostly written anyways.
Comment #8
socketwench commentedComment #11
socketwench commentedTested #4 locally in concert with #2488782: Define a FLAG_RESET event and kill hook_flag_reset().. Everything looks good.
Comment #12
joshi.rohit100Should be $this->t()
again $this->t()
$this->t()
$this->t()
Comment #13
martin107 commentedFixed.
Comment #14
joshi.rohit100OOps FlagResetForm missed the $this->t() changes.
Comment #15
martin107 commentedThanks for catching my mistake.
Comment #17
socketwench commentedThanks everyone!
Comment #18
socketwench commented@martin107: Technically, fixing the t() in FlagDeleteForm was scope creep and probably should have been in another patch. It's a pretty small change this time, so *shrug*.