-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #1447 customerticketzoom #1845
base: rel-10_1
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine. The removed code avoids the problem of inadvertently changing the data in the Kernel::Config instance.
I have one suggestion for further code cleanup. In line 1782 the variable $NextActivityDialogs is assigned a new value, unrelated to the previous value. In those cases I tend to give the variable a new name, declared with my.
Thank you for the good suggestion. I would make this change, but this seems to happen in L1795 also. I don't know if that makes much of a difference, but intuitively I would want to avoid initializing several variables which are not used later on - what do you think? Maybe it could be a solution not to overwrite the existing variable but to actually filter the values with map? |
I haven't really looked closely at the code. The reuse of variables in different contexts is IMHO a red flag. If it occurs in several lines then it might make sense to rename or remove those variables. But of course only when there is no danger of unwanted side effects. |
I tried to reduce the assignments with my latest commit. Do you think this looks ok? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please confirm that $ActivityData and $ActivityData->{ActivityDialog} are always hashrefs.
Please look for LayoutObject->Block(ProcessData) in AgentTicketZoom.
I added checks with IsHashRefWithData on ActivityData and ActivityData->{ActivityDialog}. |
4b4b843
to
448c835
Compare
…ation widget module.
7792e9b
to
9fe16c6
Compare
Closing #1447