-
Notifications
You must be signed in to change notification settings - Fork 75
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
Create a method for returning a JSON response #2327
Comments
Use it for the ContactsWD dynamic field. Use the method Attachment() internally.
Hey, I want to get involved in the opensource community how can I solve this issue. Please help as this will be my first open source contribution. |
Hi @chaitanyak175, I'm not sure whether OTOBO is the best suited project for an overall open source contribution. As a first step I suggest that you do an installation of OTOBO so that you can see whether your contribution is working. Take a look at https://doc.otobo.org/manual/installation/10.1/en/content/installation-docker.html and see whether you can get started. Note that documentation fixes are welcome as well. Best regards, |
because FatalError() changes the control flow.
Hi @chaitanyak175, I already have added the method
No need to limit the passed in data to Hashref, Arrayref, and String. Cpanel::JSON::XS already croaks. |
$Param{Data} already is a reference
Issue #2327: remove unneeded reference taking
Let's do this after #399 is merged into rel-11_0. This reduced the number of variants that must be tested. |
Thus the _ReturnJSON helper subs can be removed.
For example the JSON that encodes the number 0.
A lot more frontend modules could be converted. But there is no good reason to do that now. Closing this issue. |
Currently several frontend modules have a helper method that creates a JSON response. This is an indication that this is a commonly used functionality that warrants its own method in the layout object.
The text was updated successfully, but these errors were encountered: